/* Blog bundle — single entrypoint for blog pages
   Purpose: keep blog pages linking to one stylesheet.
   Notes:
   - Uses @import to pull existing project CSS.
   - Keep this file lightweight; add blog-only overrides below.
*/

/* NOTE:
   This file is linked directly from blog pages.
   Global styles (../styles.css) and shared layout CSS (../css/header.css etc.)
   are already loaded via <link> tags in the page head.
   Avoid @import of non-existent local files to prevent render delays. */

/* ============================
   Blog detail (single source)
   ============================ */
:root {
  --bd-text: #0f1419;
  --bd-text-muted: #5b6470;
  --bd-text-soft: #8b939e;
  --bd-bg: #ffffff;
  --bd-bg-soft: #f8f9fb;
  --bd-border: #e6e8ec;
  --bd-accent: #146ef5;
  --bd-accent-soft: #e9f0ff;
  --bd-warning-bg: #fff5ec;
  --bd-info-bg: #f1f6ff;
  --bd-radius: 14px;
  --bd-content-w: 775px;
  --bd-shell-w: 1280px;
  --bd-side-w: 260px;
}

/* Hide legacy unused blocks if present */
.blog-detay-hero,
.blog-detay-cover { display: none !important; }

/* Main shell */
.blog-detay-body {
  background: transparent;
  padding: 3.5rem 1.5rem 4rem;
}
.blog-detay-body-inner {
  max-width: var(--bd-shell-w);
  margin: 0 auto;
  display: block;
}
@media (min-width: 980px) {
  .blog-detay-body-inner {
    display: grid;
    grid-template-columns: var(--bd-side-w) minmax(0, 1fr);
    gap: 4.5rem;
    align-items: start;
  }
}

/* Sidebar */
.blog-detay-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 980px) {
  .blog-detay-sidebar { position: sticky; top: calc(var(--page-header-offset, 72px) + 24px); }
}
.blog-detay-author-block { display: flex; align-items: center; gap: 0.85rem; }
.blog-detay-author-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #146ef5 0%, #4f46e5 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.95rem;
  flex-shrink: 0;
}
.blog-detay-author-info { line-height: 1.35; }
.blog-detay-author-name { font-weight: 600; font-size: 0.96rem; color: var(--bd-text); }
.blog-detay-author-role { font-size: 0.83rem; color: var(--bd-text-muted); }

/* TOC */
.blog-detay-toc-inline {
  background: var(--bd-bg);
  border: 1px solid var(--bd-border);
  border-radius: var(--bd-radius);
  padding: 1.4rem 1.5rem;
}
.blog-detay-toc-title { font-size: 0.95rem; font-weight: 600; color: var(--bd-text); margin-bottom: 1rem; }
.blog-detay-toc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.blog-detay-toc-list li { position: relative; padding-left: 1.1rem; }
.blog-detay-toc-list li::before { content: '└'; position: absolute; left: 0; color: var(--bd-text-soft); font-size: 0.85rem; }
.blog-detay-toc-list a {
  color: var(--bd-text-muted);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0,0,0,0.18);
  font-size: 0.9rem;
  line-height: 1.45;
  transition: color 0.18s, text-decoration-color 0.18s;
  display: block;
}
.blog-detay-toc-list a:hover { color: var(--bd-accent); text-decoration-color: var(--bd-accent); }
.blog-detay-toc-num { display: none; }

/* Share */
.blog-detay-share-block { margin-top: 0.5rem; }
.blog-detay-share-label { font-size: 0.95rem; font-weight: 600; color: var(--bd-text); margin-bottom: 0.85rem; }
.blog-detay-author-share { display: flex; gap: 0.75rem; }
.blog-detay-share-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bd-text);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  transition: transform 0.18s, background 0.18s;
}
.blog-detay-share-btn:hover { transform: translateY(-1px); background: var(--bd-accent); }
.blog-detay-share-btn svg { width: 14px; height: 14px; }

/* Article head */
.blog-detay-article { max-width: 100%; min-width: 0; }
.blog-detay-article-head { margin-bottom: 2.5rem; }
.blog-detay-breadcrumb {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; color: var(--bd-text-soft);
  margin-bottom: 1.25rem; flex-wrap: wrap;
}
.blog-detay-breadcrumb a { color: var(--bd-text-muted); text-decoration: none; transition: color 0.18s; }
.blog-detay-breadcrumb a:hover { color: var(--bd-accent); }
.blog-detay-breadcrumb-sep { color: var(--bd-text-soft); }
.blog-detay-cat {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--bd-accent-soft);
  color: var(--bd-accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.blog-detay-title {
  font-family: var(--font-sans, 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.85rem);
  line-height: 1.18;
  letter-spacing: -0.022em;
  color: var(--bd-text);
  margin: 0 0 1.5rem;
}
.blog-detay-title br { display: none; }
.blog-detay-meta-row {
  display: flex; align-items: center; gap: 0.85rem;
  flex-wrap: wrap;
  color: var(--bd-text-muted);
  font-size: 0.92rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--bd-border);
}
.blog-detay-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--bd-text-soft); display: inline-block; }

/* Content typography */
.blog-detay-content {
  font-size: 1.075rem;
  line-height: 1.72;
  color: var(--bd-text);
  max-width: var(--bd-content-w);
}
.blog-detay-content > p { margin: 0 0 1.4rem; }
.blog-detay-content > p:first-of-type { font-size: 1.18rem; line-height: 1.6; }
.blog-detay-content h2 {
  font-family: var(--font-sans, 'Plus Jakarta Sans', system-ui, sans-serif);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 2.2rem 0 1rem;
  scroll-margin-top: var(--page-header-offset, 72px);
}
.blog-detay-content ul,
.blog-detay-content ol { margin: 0 0 1.4rem; padding-left: 1.2rem; }
.blog-detay-content li { margin: 0.4rem 0; }

/* Boxes */
.blog-detay-law-box {
  background: var(--bd-bg-soft);
  border: 1px solid var(--bd-border);
  border-radius: var(--bd-radius);
  padding: 1rem 1.1rem;
  margin: 1.4rem 0 1.8rem;
  color: var(--bd-text-muted);
  font-size: 0.95rem;
}
.blog-detay-law-box strong { color: var(--bd-text); display: block; margin-bottom: 0.35rem; }

.blog-detay-callout {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.75rem;
  border-radius: var(--bd-radius);
  padding: 1rem 1.1rem;
  margin: 1.5rem 0;
  border: 1px solid var(--bd-border);
}
.blog-detay-callout.warning { background: var(--bd-warning-bg); }
.blog-detay-callout.info { background: var(--bd-info-bg); }
.blog-detay-callout-icon { font-size: 1.1rem; line-height: 1; }
.blog-detay-callout-text { color: var(--bd-text-muted); font-size: 0.98rem; line-height: 1.6; }
.blog-detay-callout-text strong { color: var(--bd-text); }

/* Tables */
.blog-detay-table-wrap {
  border: 1px solid var(--bd-border);
  border-radius: var(--bd-radius);
  overflow: hidden;
  background: var(--bd-bg);
  margin: 1.4rem 0;
}
.blog-detay-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.blog-detay-table th, .blog-detay-table td { padding: 0.85rem 0.95rem; border-bottom: 1px solid var(--bd-border); vertical-align: top; }
.blog-detay-table th { background: #f7f8fb; color: var(--bd-text); font-weight: 700; text-align: left; }
.blog-detay-table tr:last-child td { border-bottom: 0; }

/* “Steps” / features lists used in our posts */
.blog-detay-steps { padding-left: 1.2rem; margin: 1.2rem 0 1.6rem; }
.blog-detay-steps li { margin: 0.55rem 0; color: var(--bd-text-muted); }
.blog-detay-features { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; display: grid; gap: 0.6rem; }
.blog-detay-features li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--bd-text-muted);
}
.blog-detay-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0.05rem;
  color: var(--bd-accent);
  font-weight: 800;
}

/* Related posts */
.blog-detay-related {
  background: transparent;
  padding: 2.2rem 1.5rem 3.5rem;
  border-top: 1px solid var(--bd-border);
}
.blog-detay-related-inner { max-width: var(--bd-shell-w); margin: 0 auto; }
.blog-detay-related-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.blog-detay-related-title { margin: 0; font-size: 1.15rem; font-weight: 800; color: var(--bd-text); }
.blog-detay-related-link { color: var(--bd-accent); font-weight: 700; text-decoration: none; }
.blog-detay-related-link:hover { text-decoration: underline; }
.blog-detay-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 980px) { .blog-detay-related-grid { grid-template-columns: 1fr; } }
.blog-detay-related-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.9rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--bd-border);
  border-radius: 16px;
  background: #fff;
  padding: 0.9rem;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.blog-detay-related-card:hover {
  transform: translateY(-2px);
  border-color: rgba(20, 110, 245, 0.35);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}
.blog-detay-related-thumb { width: 72px; height: 56px; border-radius: 12px; background: #e2e8f0; }
.blog-detay-related-meta { font-size: 0.83rem; font-weight: 600; color: var(--bd-text-muted); margin-bottom: 0.2rem; }
.blog-detay-related-card-title { margin: 0; font-size: 0.95rem; line-height: 1.35; color: var(--bd-text); font-weight: 800; }

/* Blog list cards — allow tag list markup (<ul><li>) */
ul.blog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 0.55rem 0 0.85rem;
}
ul.blog-card-tags li { margin: 0; }

/* ============================
   Blog listing page (bl-*)
   Fresh, isolated namespace.
   ============================ */
body.bl-page { background: #ffffff; }

.bl-main {
  display: block;
  background: #ffffff;
  color: #0f1419;
  min-height: 60vh;
  padding: 0 0 4rem;
  width: 100%;
  box-sizing: border-box;
}
.bl-main *,
.bl-main *::before,
.bl-main *::after { box-sizing: border-box; }

.bl-container {
  max-width: 1482px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  width: 100%;
}

/* Hero */
.bl-hero {
  background: #ffffff;
  padding: 2.75rem 0 2rem;
  text-align: center;
}
.bl-crumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: #0f1419;
  margin: 0 0 1.5rem;
  flex-wrap: wrap;
}
.bl-crumb a {
  color: #0f1419;
  text-decoration: none;
  transition: color 0.18s;
}
.bl-crumb a:hover { color: #4b5cf5; }
.bl-crumb-chev { color: #9aa0a8; flex-shrink: 0; }
.bl-crumb a.bl-crumb-current { color: #4b5cf5; font-weight: 500; }
.bl-hero-title {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.028em;
  color: #0f1419;
  margin: 0;
}

/* Toolbar (categories + search) */
.bl-toolbar {
  background: #ffffff;
  padding: 0.5rem 0 1.5rem;
}
.bl-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: nowrap;
}
.bl-nav-arrow {
  appearance: none;
  border: 0;
  background: transparent;
  color: #0f1419;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.18s, opacity 0.18s;
}
.bl-nav-arrow:hover { background: rgba(15, 20, 25, 0.06); }
.bl-nav-arrow[hidden] { display: none; }
.bl-cats {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  scroll-behavior: smooth;
  padding: 0.25rem 0;
}
.bl-cats:not(.is-overflow) { mask-image: none; -webkit-mask-image: none; }
.bl-cats.is-overflow {
  mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}
.bl-cats::-webkit-scrollbar { display: none; }
.bl-cat {
  appearance: none;
  border: 1px solid rgba(15, 20, 25, 0.12);
  background: rgba(15, 20, 25, 0.02);
  color: rgba(15, 20, 25, 0.8);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.48rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
  line-height: 1.4;
  flex-shrink: 0;
}
.bl-cat:hover {
  background: rgba(15, 20, 25, 0.05);
  border-color: rgba(15, 20, 25, 0.18);
  color: #0f1419;
}
.bl-cat:active { transform: translateY(1px); }
.bl-cat:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(75, 92, 245, 0.22);
  border-color: rgba(75, 92, 245, 0.55);
}
.bl-cat.is-active {
  background: rgba(75, 92, 245, 0.10);
  border-color: rgba(75, 92, 245, 0.35);
  color: #2b3af5;
  font-weight: 800;
}
.bl-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  padding-left: 0.85rem;
  margin-left: 0.25rem;
  border-left: 1px solid #ececec;
}
.bl-search-icon {
  width: 18px;
  height: 18px;
  color: #0f1419;
  flex-shrink: 0;
}
.bl-search-input {
  width: 60px;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: inherit;
  font-size: 0.95rem;
  color: #0f1419;
  padding: 0.45rem 0;
  transition: width 0.22s ease;
}
.bl-search-input::placeholder { color: #6b7280; }
.bl-search-input:focus { width: 200px; }

/* Pill tag (outlined) */
.bl-pill {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  font-family: 'Inter', system-ui, sans-serif;
  font-style: normal;
  font-size: 17px;
  font-weight: 400;
  line-height: 24px;
  color: #37F;
  background: transparent;
  border: 1px solid #37F;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  letter-spacing: 0;
  white-space: nowrap;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.bl-card-link:hover .bl-pill,
.bl-feat-card:hover .bl-pill {
  background: #37F;
  border-color: #37F;
  color: #ffffff;
}

/* Meta line */
.bl-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #6b7280;
}
.bl-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #cbd0d6;
  display: inline-block;
}

/* Featured card */
.bl-featured {
  background: #ffffff;
  padding: 2rem 0 1rem;
}
.bl-feat-card {
  --card-bg: #f5f3ff;
  --card-border: #e9e5fb;
  --card-border-hover: #c8c0f5;
  --card-shadow: rgba(76, 29, 149, 0.08);
  --card-accent: #7c3aed;
  --card-accent-soft: #c4b5fd;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 0;
  align-items: stretch;
  text-decoration: none;
  color: inherit;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.bl-feat-card:hover {
  transform: translateY(-3px);
  border-color: var(--card-border-hover);
  box-shadow: 0 16px 36px var(--card-shadow);
}
.bl-feat-card:hover .bl-feat-title { color: var(--card-accent); }
.bl-feat-card .bl-pill {
  color: var(--card-accent);
  border-color: var(--card-accent);
}
.bl-feat-card:hover .bl-pill {
  background: var(--card-accent);
  border-color: var(--card-accent);
  color: #ffffff;
}
.bl-feat-thumb {
  align-self: stretch;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent;
  order: 2;
  padding: 1.5rem;
}
.bl-feat-thumb img,
.bl-feat-thumb svg { max-width: 100%; max-height: 320px; height: auto; display: block; }
.bl-feat-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 3rem 2rem 3rem 2.5rem;
  order: 1;
}
.bl-feat-title {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.65rem, 2.6vw, 2.25rem);
  line-height: 1.18;
  letter-spacing: -0.018em;
  color: #0f1419;
  margin: 0;
  transition: color 0.18s;
}
.bl-feat-excerpt {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #2c3138;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Apply tone variables to featured card */
.bl-feat-card.tone-violet { --card-bg:#f5f3ff; --card-border:#e9e5fb; --card-border-hover:#c8c0f5; --card-shadow:rgba(76,29,149,0.08); --card-accent:#7c3aed; --card-accent-soft:#c4b5fd; }
.bl-feat-card.tone-pink { --card-bg:#fdf2f8; --card-border:#fbcfe8; --card-border-hover:#f9a8d4; --card-shadow:rgba(190,24,93,0.08); --card-accent:#db2777; --card-accent-soft:#f9a8d4; }
.bl-feat-card.tone-blue { --card-bg:#eff6ff; --card-border:#dbeafe; --card-border-hover:#bfdbfe; --card-shadow:rgba(29,78,216,0.08); --card-accent:#2563eb; --card-accent-soft:#bfdbfe; }
.bl-feat-card.tone-teal { --card-bg:#f0fdfa; --card-border:#ccfbf1; --card-border-hover:#99f6e4; --card-shadow:rgba(13,148,136,0.08); --card-accent:#0d9488; --card-accent-soft:#99f6e4; }
.bl-feat-card.tone-green { --card-bg:#f0fdf4; --card-border:#dcfce7; --card-border-hover:#bbf7d0; --card-shadow:rgba(22,101,52,0.08); --card-accent:#16a34a; --card-accent-soft:#bbf7d0; }
.bl-feat-card.tone-amber { --card-bg:#fffbeb; --card-border:#fef3c7; --card-border-hover:#fde68a; --card-shadow:rgba(180,83,9,0.08); --card-accent:#d97706; --card-accent-soft:#fde68a; }
.bl-feat-card.tone-orange { --card-bg:#fff7ed; --card-border:#fed7aa; --card-border-hover:#fdba74; --card-shadow:rgba(194,65,12,0.08); --card-accent:#ea580c; --card-accent-soft:#fdba74; }
.bl-feat-card.tone-indigo { --card-bg:#eef2ff; --card-border:#e0e7ff; --card-border-hover:#c7d2fe; --card-shadow:rgba(55,48,163,0.08); --card-accent:#4f46e5; --card-accent-soft:#c7d2fe; }
.bl-feat-card.tone-rose { --card-bg:#fff1f2; --card-border:#ffe4e6; --card-border-hover:#fecdd3; --card-shadow:rgba(159,18,57,0.08); --card-accent:#e11d48; --card-accent-soft:#fecdd3; }

@media (max-width: 880px) {
  .bl-feat-card {
    grid-template-columns: 1fr;
  }
  .bl-feat-thumb { min-height: 220px; order: 1; }
  .bl-feat-body { padding: 1.75rem; order: 2; }
}

/* List section + card grid */
.bl-list-section {
  background: #ffffff;
  padding: 2.5rem 0 1rem;
}
.bl-empty {
  text-align: center;
  color: #6b7280;
  font-size: 0.95rem;
  padding: 3rem 1rem;
  margin: 0;
}
.bl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  width: 100%;
}
@media (max-width: 980px) {
  .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .bl-grid { grid-template-columns: 1fr; }
}

.bl-card {
  display: block;
  --card-bg: #f5f3ff;
  --card-border: #e9e5fb;
  --card-border-hover: #c8c0f5;
  --card-shadow: rgba(76, 29, 149, 0.08);
  --card-accent: #7c3aed;
  --card-accent-soft: #c4b5fd;
  --card-grad-from: #ede9fe;
  --card-grad-mid: #c4b5fd;
  --card-grad-to: #a78bfa;
}
.bl-card-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 0;
  text-decoration: none;
  color: inherit;
  width: 100%;
  height: 209px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.bl-card-link:hover {
  transform: translateY(-3px);
  border-color: var(--card-border-hover);
  box-shadow: 0 14px 32px var(--card-shadow);
}
.bl-card-link:hover .bl-card-title { color: var(--card-accent); }
.bl-card-thumb {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent !important;
  order: 1;
  padding: 1.25rem;
}
.bl-card-thumb svg,
.bl-card-thumb img { max-width: 95%; max-height: 152px; height: auto; display: block; }
.bl-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 1.15rem 1.5rem 1.15rem 1.25rem;
  order: 2;
  min-width: 0;
}
.bl-card-body .bl-pill { margin-top: auto; align-self: flex-start; }
.bl-card-title {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.35;
  color: #0f172a;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.18s;
}
.bl-card-excerpt {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #5b6470;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bl-card .bl-pill {
  color: var(--card-accent);
  border-color: var(--card-accent);
}
.bl-card-link:hover .bl-pill {
  background: var(--card-accent);
  border-color: var(--card-accent);
  color: #ffffff;
}

/* Per-card color tones */
.bl-card.tone-violet { --card-bg:#f5f3ff; --card-border:#e9e5fb; --card-border-hover:#c8c0f5; --card-shadow:rgba(76,29,149,0.08); --card-accent:#7c3aed; --card-accent-soft:#c4b5fd; --card-grad-from:#ede9fe; --card-grad-mid:#c4b5fd; --card-grad-to:#a78bfa; }
.bl-card.tone-pink { --card-bg:#fdf2f8; --card-border:#fbcfe8; --card-border-hover:#f9a8d4; --card-shadow:rgba(190,24,93,0.08); --card-accent:#db2777; --card-accent-soft:#f9a8d4; --card-grad-from:#fce7f3; --card-grad-mid:#f9a8d4; --card-grad-to:#ec4899; }
.bl-card.tone-blue { --card-bg:#eff6ff; --card-border:#dbeafe; --card-border-hover:#bfdbfe; --card-shadow:rgba(29,78,216,0.08); --card-accent:#2563eb; --card-accent-soft:#bfdbfe; --card-grad-from:#dbeafe; --card-grad-mid:#93c5fd; --card-grad-to:#3b82f6; }
.bl-card.tone-teal { --card-bg:#f0fdfa; --card-border:#ccfbf1; --card-border-hover:#99f6e4; --card-shadow:rgba(13,148,136,0.08); --card-accent:#0d9488; --card-accent-soft:#99f6e4; --card-grad-from:#ccfbf1; --card-grad-mid:#5eead4; --card-grad-to:#14b8a6; }
.bl-card.tone-green { --card-bg:#f0fdf4; --card-border:#dcfce7; --card-border-hover:#bbf7d0; --card-shadow:rgba(22,101,52,0.08); --card-accent:#16a34a; --card-accent-soft:#bbf7d0; --card-grad-from:#dcfce7; --card-grad-mid:#86efac; --card-grad-to:#22c55e; }
.bl-card.tone-amber { --card-bg:#fffbeb; --card-border:#fef3c7; --card-border-hover:#fde68a; --card-shadow:rgba(180,83,9,0.08); --card-accent:#d97706; --card-accent-soft:#fde68a; --card-grad-from:#fef3c7; --card-grad-mid:#fcd34d; --card-grad-to:#f59e0b; }
.bl-card.tone-orange { --card-bg:#fff7ed; --card-border:#fed7aa; --card-border-hover:#fdba74; --card-shadow:rgba(194,65,12,0.08); --card-accent:#ea580c; --card-accent-soft:#fdba74; --card-grad-from:#fed7aa; --card-grad-mid:#fdba74; --card-grad-to:#f97316; }
.bl-card.tone-indigo { --card-bg:#eef2ff; --card-border:#e0e7ff; --card-border-hover:#c7d2fe; --card-shadow:rgba(55,48,163,0.08); --card-accent:#4f46e5; --card-accent-soft:#c7d2fe; --card-grad-from:#e0e7ff; --card-grad-mid:#a5b4fc; --card-grad-to:#6366f1; }
.bl-card.tone-rose { --card-bg:#fff1f2; --card-border:#ffe4e6; --card-border-hover:#fecdd3; --card-shadow:rgba(159,18,57,0.08); --card-accent:#e11d48; --card-accent-soft:#fecdd3; --card-grad-from:#ffe4e6; --card-grad-mid:#fda4af; --card-grad-to:#f43f5e; }
.bl-card-body .bl-pill { margin-top: auto; align-self: flex-start; }
.bl-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--card-accent);
}
.bl-card-cta i { font-size: 0.78rem; transition: transform 0.2s ease; }
.bl-card-link:hover .bl-card-cta i { transform: translateX(4px); }

@media (max-width: 768px) {
  .bl-card-link {
    grid-template-columns: 1fr;
    height: auto;
  }
  .bl-card-thumb { height: auto; aspect-ratio: 16/9; padding: 1rem; order: 1; }
  .bl-card-thumb svg,
  .bl-card-thumb img { max-width: 100%; max-height: 100%; }
  .bl-card-body { order: 2; padding: 1.25rem; }
  .bl-card-title { font-size: 1.05rem; }
  .bl-card-excerpt { font-size: 0.88rem; }
}
@media (max-width: 480px) {
  .bl-card-thumb { padding: 0.75rem 0.75rem 0; height: 120px; }
  .bl-card-body { padding: 0.85rem 1rem 1rem; }
  .bl-card-title { font-size: 1rem; }
  .bl-card-excerpt { font-size: 0.85rem; }
  .bl-card .bl-pill { font-size: 0.78rem; padding: 0.3rem 0.8rem; }
}

/* Pagination */
.bl-pagi {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 3rem 0 1rem;
  flex-wrap: wrap;
}
.bl-pg {
  appearance: none;
  background: #ffffff;
  border: 1px solid #e6e8ec;
  color: #2c3138;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  min-width: 40px;
  height: 40px;
  padding: 0 0.7rem;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.16s ease;
}
.bl-pg:hover {
  border-color: #0f1419;
  color: #0f1419;
}
.bl-pg.is-active {
  background: #0f1419;
  border-color: #0f1419;
  color: #ffffff;
}
.bl-pg-ell {
  color: #9aa0a8;
  padding: 0 0.5rem;
  font-weight: 700;
}
.bl-pg[disabled] { opacity: 0.4; cursor: not-allowed; }
.bl-pg[disabled]:hover { border-color: #e6e8ec; color: #2c3138; }
.bl-pg-arrow { font-size: 1.2rem; line-height: 1; }

/* Floating action */
.bl-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: #146ef5;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(20, 110, 245, 0.35);
  z-index: 50;
  transition: transform 0.18s;
}
.bl-fab:hover { transform: translateY(-2px); }
.bl-fab svg { width: 18px; height: 18px; }
.bl-fab[hidden] { display: none; }

/* Mobile tweaks */
@media (max-width: 768px) {
  .bl-container { padding-left: 1rem; padding-right: 1rem; }

  .bl-hero { padding: 1.75rem 0 1rem; }
  .bl-crumb { font-size: 0.88rem; margin-bottom: 1rem; }

  /* Toolbar: arama üstte tam satır, kategoriler altta tam satır */
  .bl-toolbar { padding: 0.25rem 0 1.25rem; }
  .bl-toolbar-row {
    flex-wrap: wrap;
    gap: 0.65rem;
  }
  .bl-search {
    order: -1;
    flex: 1 1 100%;
    padding-left: 0.85rem;
    padding-right: 0.5rem;
    margin-left: 0;
    border-left: 0;
    border: 1px solid #ececec;
    border-radius: 999px;
    background: #fff;
  }
  .bl-search-input {
    width: 100%;
    padding: 0.55rem 0;
  }
  .bl-search-input:focus { width: 100%; }

  .bl-nav-arrow { display: none; }
  .bl-cats {
    flex: 1 1 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.25rem 0.25rem;
    gap: 0.45rem;
    /* Edge fade'i iPhone'da kategoriyi kesmesin */
    mask-image: none;
    -webkit-mask-image: none;
  }
  .bl-cats::-webkit-scrollbar { display: none; }
  .bl-cat { font-size: 0.92rem; padding: 0.45rem 0.85rem; }

  .bl-featured { padding: 1.5rem 0 0.5rem; }
  .bl-list-section { padding-top: 1.5rem; }

  /* Featured kart — mobilde dikey, daha hafif padding */
  .bl-feat-card { grid-template-columns: 1fr; }
  .bl-feat-thumb {
    order: 1;
    min-height: 0;
    aspect-ratio: 16 / 10;
    padding: 1.25rem;
  }
  .bl-feat-thumb img,
  .bl-feat-thumb svg { max-height: 100%; }
  .bl-feat-body {
    order: 2;
    padding: 1.5rem 1.25rem;
    gap: 0.9rem;
  }
  .bl-feat-body .bl-feat-meta { gap: 0.6rem; row-gap: 0.4rem; }
  .bl-feat-meta-date,
  .bl-feat-meta-read { font-size: 0.85rem; }
  .bl-feat-title { font-size: clamp(1.35rem, 5.2vw, 1.7rem); }
  .bl-feat-excerpt { font-size: 0.95rem; line-height: 1.55; }

  /* Sayfalama — küçük ekranda kompakt */
  .bl-pagi { gap: 0.3rem; padding: 2rem 0 0.5rem; }
  .bl-pg { min-width: 36px; height: 36px; font-size: 0.88rem; padding: 0 0.55rem; }

  /* FAB — alt köşede daha az yer kaplasın, footer alanını engellemesin */
  .bl-fab { bottom: 1rem; right: 1rem; width: 40px; height: 40px; }
}

@media (max-width: 420px) {
  .bl-hero-title { font-size: clamp(1.85rem, 8vw, 2.25rem); }
  .bl-feat-body { padding: 1.25rem 1rem; }
}

/* ============================
   Blog detay v2 (bd-*)  — örnek şablon
   Tek sütun beyaz zemin, sticky sağ sidebar, ikas tarzı iskelet
   ============================ */
.bd-main { background:#fff; color:#0f172a; padding:0 0 4rem; min-height:60vh; font-family:'Inter',system-ui,sans-serif; }
.bd-main *,.bd-main *::before,.bd-main *::after { box-sizing:border-box; }
.bd-container { max-width:1240px; margin:0 auto; padding:0 1.5rem; }

/* Hero */
.bd-hero { padding:1.6rem 0 2.25rem; background:#fff; }
.bd-topbar-wrap { border-bottom:1px solid #eef0f3; background:#fff; }
.bd-hero-topbar { display:flex; align-items:center; gap:1rem; max-width:1440px; margin:0 auto; padding:1.25rem max(16px, env(safe-area-inset-left,0px)); }
@media (min-width:901px) {
  .bd-hero-topbar { padding-left:calc(max(16px, env(safe-area-inset-left,0px)) + 7rem); padding-right:calc(max(16px, env(safe-area-inset-right,0px)) + 7rem); }
}
.bd-back { display:inline-flex; align-items:center; gap:0.6rem; color:#0f172a; text-decoration:none; font-weight:600; font-size:0.95rem; flex-shrink:0; }
.bd-back i { font-size:0.85rem; }
.bd-back:hover { color:#146ef5; }
.bd-share-trigger { display:inline-flex; align-items:center; gap:0.5rem; background:none; border:none; cursor:pointer; color:#0f172a; font-weight:600; font-size:0.95rem; flex-shrink:0; padding:0; }
.bd-share-trigger i { color:#9aa0a8; font-size:0.95rem; }
.bd-share-trigger:hover, .bd-share-trigger:hover i { color:#146ef5; }
.bd-breadcrumb { display:flex; align-items:center; justify-content:center; gap:0.6rem; flex:1; font-size:0.92rem; color:#5b6470; min-width:0; }
.bd-breadcrumb a { color:#5b6470; text-decoration:none; transition:color .18s; white-space:nowrap; }
.bd-breadcrumb a:hover { color:#146ef5; }
.bd-breadcrumb-sep { color:#cbd0d6; }
.bd-breadcrumb-current { color:#7c5cff; font-weight:500; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; max-width:520px; }
.bd-hero-grid { display:grid; grid-template-columns:200px 1fr; gap:2.5rem; align-items:center; }
.bd-hero-grid:not(:has(.bd-hero-icon)) { grid-template-columns:1fr; }
.bd-hero-icon { width:200px; height:200px; display:flex; align-items:center; justify-content:center; background:transparent; padding:0; }
.bd-hero-icon img { width:100%; height:100%; object-fit:contain; }
.bd-hero-text { min-width:0; }
.bd-title { font-family:'Plus Jakarta Sans',system-ui,sans-serif; font-weight:800; font-size:clamp(1.8rem,3.6vw,2.6rem); line-height:1.15; letter-spacing:-0.025em; color:#0f172a; margin:0.85rem 0 1rem; max-width:775px; }
.bd-meta { display:flex; align-items:center; gap:0.6rem; flex-wrap:wrap; font-size:0.88rem; color:#5b6470; }
.bd-meta-cat { display:inline-flex; align-items:center; padding:0.32rem 0.85rem; border-radius:999px; border:1px solid; font-size:0.8rem; font-weight:600; text-decoration:none; }
.bd-meta-sep { color:#cbd0d6; }
.bd-meta-item { display:inline-flex; align-items:center; gap:0.4rem; }
.bd-meta-item i { font-size:0.8rem; color:#9aa0a8; }
@media (max-width:780px) {
  .bd-hero-grid { grid-template-columns:1fr; gap:1.25rem; text-align:left; }
  .bd-hero-icon { width:120px; height:120px; padding:0; }
  .bd-hero-topbar { padding:0.85rem 1rem; gap:0.6rem; }
  .bd-back { font-size:0.85rem; }
  .bd-share-trigger { font-size:0.85rem; }
  .bd-breadcrumb { display:none; }
}

/* Kapak */
.bd-cover { padding:1rem 0 2rem; background:#fff; }
.bd-cover img { width:100%; max-height:480px; object-fit:cover; border-radius:18px; display:block; }
.bd-cover-wrap { display:flex; justify-content:center; padding:1rem 1.5rem 2rem; }
.bd-cover-img { max-height:240px; max-width:100%; height:auto; }
@media (max-width: 768px) {
  .bd-cover-wrap { padding: 0.5rem 1rem 1.25rem; }
  .bd-cover-img { max-height: 180px; }
}

/* Body — 2 sutun grid */
.bd-body { padding:1rem 0 2.5rem; background:#fff; }
.bd-grid { display:grid; grid-template-columns:260px minmax(0,1fr); gap:3.5rem; align-items:start; }
.bd-grid > .bd-aside  { grid-column:1; grid-row:1; }
.bd-grid > .bd-article { grid-column:2; grid-row:1; max-width:775px; }
@media (max-width:980px) { .bd-grid { grid-template-columns:1fr; gap:2rem; } .bd-grid > .bd-aside, .bd-grid > .bd-article { grid-column:1; grid-row:auto; max-width:none; } }

/* Article */
.bd-article { min-width:0; max-width:775px; }
.bd-content { font-size:1.075rem; line-height:1.78; color:#1e293b; }
.bd-content > p { margin:0 0 1.4rem; }
.bd-content .bd-lead { font-size:1.2rem; line-height:1.65; color:#0f172a; font-weight:500; margin-bottom:1.6rem; }
.bd-content h2 { font-family:'Plus Jakarta Sans',system-ui,sans-serif; font-weight:700; font-size:clamp(1.5rem,2.4vw,1.85rem); line-height:1.25; letter-spacing:-0.018em; margin:2.5rem 0 1rem; scroll-margin-top:100px; color:#0f172a; }
.bd-content h3 { font-family:'Plus Jakarta Sans',system-ui,sans-serif; font-weight:700; font-size:1.25rem; line-height:1.3; margin:1.8rem 0 0.75rem; color:#0f172a; }
.bd-content a { color:#146ef5; text-decoration:underline; text-underline-offset:3px; transition:color .18s; }
.bd-content a:hover { color:#0d52cc; }
.bd-content strong { color:#0f172a; font-weight:700; }
.bd-content ul,.bd-content ol { margin:0 0 1.4rem; padding-left:1.4rem; }
.bd-content li { margin:0.45rem 0; }
.bd-content blockquote { margin:1.6rem 0; padding:1rem 1.4rem; border-left:4px solid #7c3aed; background:#faf5ff; color:#4b5cf5; font-style:italic; font-size:1.08rem; line-height:1.6; border-radius:0 10px 10px 0; }

/* Callout kutuları */
.bd-callout { display:grid; grid-template-columns:24px 1fr; gap:0.85rem; align-items:start; padding:1rem 1.2rem; border-radius:12px; margin:1.5rem 0; font-size:0.98rem; line-height:1.55; border:1px solid; }
.bd-callout i { font-size:1.05rem; padding-top:0.15rem; }
.bd-callout-info { background:#eff6ff; border-color:#bfdbfe; color:#1e40af; }
.bd-callout-info i { color:#2563eb; }
.bd-callout-warning { background:#fffbeb; border-color:#fde68a; color:#92400e; }
.bd-callout-warning i { color:#d97706; }
.bd-callout strong { display:block; margin-bottom:0.2rem; color:inherit; }

/* Feature kutusu (Yeni Özellik tarzı) */
.bd-feature { background:#f5f3ff; border:1px solid #ddd6fe; border-radius:14px; padding:1.15rem 1.4rem; margin:1.6rem 0; }
.bd-feature-head { display:flex; align-items:center; gap:0.75rem; flex-wrap:wrap; margin-bottom:0.55rem; }
.bd-feature-head strong { font-size:1.05rem; font-weight:700; color:#0f172a; }
.bd-feature-badge { display:inline-flex; align-items:center; gap:0.35rem; background:#6366f1; color:#fff; font-size:0.72rem; font-weight:700; letter-spacing:.06em; padding:0.32rem 0.7rem; border-radius:999px; text-transform:uppercase; }
.bd-feature-list { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:0.55rem; }
.bd-feature-list li { display:grid; grid-template-columns:20px 1fr; gap:0.7rem; align-items:start; color:#334155; font-size:0.97rem; line-height:1.55; }
.bd-feature-list li::before { content:""; width:18px; height:18px; border-radius:50%; background:#3b82f6 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'><path d='M6.5 11L3 7.5l1-1 2.5 2.5L12 3.5l1 1z'/></svg>") center/12px no-repeat; margin-top:0.18rem; }

/* Tip / Hatırlatma kutusu (ampul ikonlu) */
.bd-tip { display:grid; grid-template-columns:28px 1fr; gap:0.85rem; align-items:start; background:#f1f6ff; border:1px solid #dbeafe; border-radius:14px; padding:1.05rem 1.3rem; margin:1.6rem 0; }
.bd-tip-icon { font-size:1.25rem; line-height:1.4; }
.bd-tip-body { color:#1f2937; font-size:0.97rem; line-height:1.65; }
.bd-tip-body strong { color:#2563eb; font-weight:700; }
.bd-tip-body .bd-tip-em { color:#2563eb; font-weight:700; }

/* Karşılaştırma tablosu (stilize) */
.bd-ctable-wrap { border:1px solid #e6e8ec; border-radius:14px; overflow:hidden; margin:1.6rem 0; background:#fff; }
.bd-ctable { width:100%; border-collapse:collapse; font-size:0.95rem; }
.bd-ctable thead th { background:#f8fafc; padding:1rem 1.2rem; text-align:left; font-weight:600; font-size:0.88rem; color:#475569; letter-spacing:.01em; border-bottom:1px solid #e6e8ec; }
.bd-ctable tbody td { padding:1.05rem 1.2rem; border-top:1px solid #eef1f5; color:#1e293b; vertical-align:middle; }
.bd-ctable tbody tr:first-child td { border-top:0; }
.bd-ctable .bd-badge-ok { display:inline-flex; align-items:center; gap:0.35rem; color:#16a34a; font-weight:600; }
.bd-ctable .bd-badge-no { display:inline-flex; align-items:center; gap:0.35rem; color:#dc2626; font-weight:600; }

/* Yazı içi görsel — admin'den yüklenen body_image_url ortaya yerleşir */
.bd-inline-image { margin:0.8rem 0 2rem; padding:0; }
.bd-inline-image img { width:100%; height:auto; display:block; border-radius:14px; box-shadow:0 4px 16px rgba(15,23,42,0.06); }

/* Numaralı adım kartları (dikey rozet listesi) */
.bd-steps { list-style:none; padding:0; margin:1.6rem 0; display:flex; flex-direction:column; gap:0.75rem; counter-reset:bdstep; }
.bd-steps li { display:grid; grid-template-columns:42px 1fr; gap:1rem; align-items:center; background:#f8fafc; border:1px solid #eef1f5; border-radius:12px; padding:1rem 1.25rem; color:#1e293b; font-size:0.98rem; line-height:1.55; counter-increment:bdstep; }
.bd-steps li::before { content:counter(bdstep); width:32px; height:32px; border-radius:50%; background:#4f46e5; color:#fff; font-weight:700; font-size:0.95rem; display:inline-flex; align-items:center; justify-content:center; }

/* Tablo */
.bd-table-wrap { border:1px solid #e6e8ec; border-radius:12px; overflow:auto; margin:1.5rem 0; background:#fff; }
.bd-table { width:100%; border-collapse:collapse; font-size:0.95rem; }
.bd-table th,.bd-table td { padding:0.85rem 1rem; border-bottom:1px solid #ececec; vertical-align:top; text-align:left; }
.bd-table th { background:#f8fafc; font-weight:700; color:#0f172a; font-size:0.85rem; text-transform:uppercase; letter-spacing:.04em; }
.bd-table tr:last-child td { border-bottom:0; }

/* Etiketler */
.bd-tags { margin:2rem 0 1.5rem; padding-top:1.5rem; border-top:1px solid #ececec; display:flex; flex-wrap:wrap; gap:0.4rem; align-items:center; }
.bd-tag-label { font-size:0.85rem; font-weight:600; color:#5b6470; margin-right:0.4rem; }
.bd-tag { display:inline-flex; padding:0.32rem 0.75rem; background:#f1f5f9; color:#475569; font-size:0.82rem; border-radius:999px; text-decoration:none; transition:all .18s; }
.bd-tag:hover { background:#e2e8f0; color:#0f172a; }

/* Yazi sonu paylas */
.bd-end-share { display:flex; flex-direction:column; align-items:flex-start; gap:0.75rem; margin:1.5rem 0 0; padding-top:1.5rem; border-top:1px solid #eef0f3; }
.bd-aside:has(> .bd-toc:first-child) .bd-end-share { margin-top:1.5rem; }
.bd-aside > .bd-end-share:first-child { border-top:none; padding-top:0; margin-top:0; }
.bd-end-share-label { font-size:0.92rem; color:#5b6470; font-weight:600; }
.bd-share-list { display:flex; gap:0.5rem; }
.bd-share-btn { display:inline-flex; align-items:center; justify-content:center; width:38px; height:38px; border-radius:50%; background:#0f172a; color:#fff; transition:all .18s; }
.bd-share-btn:hover { background:#146ef5; transform:translateY(-1px); }
.bd-share-btn svg { width:15px; height:15px; }
.bd-share-list--sm .bd-share-btn { width:32px; height:32px; }
.bd-share-list--sm .bd-share-btn svg { width:13px; height:13px; }

/* Sidebar */
.bd-aside { display:flex; flex-direction:column; gap:1.5rem; align-self:start; }
@media (min-width:981px) { .bd-aside { position:sticky; top:calc(var(--page-header-offset,72px) + 24px); } }

.bd-content h2, .bd-content h3 { scroll-margin-top:calc(var(--page-header-offset,72px) + 24px); }
.bd-toc { background:transparent; border:none; padding:0; }
.bd-toc-title { font-size:0.78rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:#5b6470; margin-bottom:0.95rem; }
.bd-toc-list { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; }
.bd-toc-item { position:relative; }
.bd-toc-item a { display:block; padding:0.5rem 0 0.5rem 0.95rem; border-left:2px solid #e6e8ec; color:#5b6470; text-decoration:none; font-size:0.92rem; line-height:1.45; transition:color .18s, border-color .18s, font-weight .18s; }
.bd-toc-item a:hover { color:#146ef5; }
.bd-toc-item.bd-toc-l3 a { padding-left:1.7rem; font-size:0.86rem; color:#7a828c; }
.bd-toc-item a.is-active { color:#146ef5; font-weight:700; border-left-color:#146ef5; }

.bd-aside-share { background:#fff; border:1px solid #e6e8ec; border-radius:14px; padding:1.25rem 1.4rem; }
.bd-aside-share-label { font-size:0.78rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:#5b6470; margin-bottom:0.75rem; }

.bd-aside-cta { display:block; background:linear-gradient(135deg,#0f172a 0%,#1e293b 100%); color:#fff; border-radius:14px; padding:1.4rem; text-decoration:none; transition:transform .22s ease, box-shadow .22s ease; }
.bd-aside-cta:hover { transform:translateY(-3px); box-shadow:0 16px 36px rgba(15,23,42,0.2); }
.bd-aside-cta-eyebrow { font-size:0.72rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:rgba(255,255,255,0.6); margin-bottom:0.5rem; }
.bd-aside-cta-title { font-family:'Plus Jakarta Sans',system-ui,sans-serif; font-weight:700; font-size:1.1rem; line-height:1.3; margin-bottom:0.5rem; color:#fff; }
.bd-aside-cta-text { font-size:0.88rem; line-height:1.5; color:rgba(255,255,255,0.75); margin-bottom:1rem; }
.bd-aside-cta-btn { display:inline-flex; align-items:center; gap:0.4rem; padding:0.55rem 1rem; background:#fff; color:#0f172a; border-radius:999px; font-size:0.85rem; font-weight:700; }

/* Yazar bio karti */
.bd-author-bar { padding:2rem 0; background:#fff; border-top:1px solid #ececec; }
.bd-author-card { display:grid; grid-template-columns:80px 1fr; gap:1.4rem; align-items:start; max-width:880px; padding:1.5rem; background:#f8fafc; border-radius:16px; }
.bd-author-avatar { width:80px; height:80px; border-radius:50%; object-fit:cover; background:#e2e8f0; }
.bd-author-eyebrow { font-size:0.72rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:#94a3b8; margin-bottom:0.3rem; }
.bd-author-name { font-family:'Plus Jakarta Sans',system-ui,sans-serif; font-weight:700; font-size:1.15rem; color:#0f172a; }
.bd-author-role { font-size:0.88rem; color:#64748b; margin-bottom:0.6rem; }
.bd-author-bio { margin:0; font-size:0.95rem; line-height:1.55; color:#475569; }
@media (max-width:600px) { .bd-author-card { grid-template-columns:60px 1fr; gap:1rem; } .bd-author-avatar { width:60px; height:60px; } }

/* Ilgili yazilar */
.bd-related { padding:3rem 0 2rem; background:#fff; }
.bd-related-head { display:flex; align-items:baseline; justify-content:space-between; gap:1rem; margin-bottom:1.5rem; flex-wrap:wrap; }
.bd-related-title { font-family:'Plus Jakarta Sans',system-ui,sans-serif; font-weight:800; font-size:clamp(1.5rem,2.6vw,2rem); margin:0; color:#0f172a; letter-spacing:-0.018em; }
.bd-related-all { color:#146ef5; font-weight:700; font-size:0.95rem; text-decoration:none; display:inline-flex; align-items:center; gap:0.4rem; }
.bd-related-all:hover { text-decoration:underline; }
.bd-related-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.5rem; }
@media (max-width:880px) { .bd-related-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:560px) { .bd-related-grid { grid-template-columns:1fr; } }
.bd-related-card { display:flex; flex-direction:column; gap:0; text-decoration:none; color:inherit; border:1px solid #ececec; border-radius:14px; overflow:hidden; background:#fff; transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.bd-related-card:hover { transform:translateY(-3px); border-color:#cbd0d6; box-shadow:0 16px 36px rgba(15,23,42,0.06); }
.bd-related-card:hover .bd-related-title-card { color:#146ef5; }
.bd-related-thumb { aspect-ratio:16/10; display:flex; align-items:center; justify-content:center; padding:1rem; }
.bd-related-thumb img { max-width:55%; max-height:120px; height:auto; }
.bd-related-body { padding:1.1rem 1.2rem 1.4rem; display:flex; flex-direction:column; gap:0.5rem; }
.bd-related-cat { font-size:0.78rem; font-weight:600; color:#7c3aed; }
.bd-related-title-card { font-family:'Plus Jakarta Sans',system-ui,sans-serif; font-weight:700; font-size:1.05rem; line-height:1.3; margin:0; color:#0f172a; transition:color .18s; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.bd-related-meta { font-size:0.82rem; color:#94a3b8; margin-top:0.25rem; }

/* Bulten / CTA bandi */
.bd-newsletter { padding:2.5rem 0 3rem; background:#fff; }
.bd-newsletter-card { background:linear-gradient(135deg,#f5f3ff 0%,#fdf2f8 100%); border:1px solid #e9e5fb; border-radius:20px; padding:2rem 2.25rem; display:grid; grid-template-columns:60px 1fr auto; gap:1.5rem; align-items:center; }
.bd-newsletter-icon { width:60px; height:60px; border-radius:50%; background:linear-gradient(135deg,#7c3aed,#db2777); color:#fff; display:flex; align-items:center; justify-content:center; font-size:1.4rem; }
.bd-newsletter-text { min-width:0; }
.bd-newsletter-eyebrow { font-size:0.72rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:#7c3aed; margin-bottom:0.3rem; }
.bd-newsletter-title { font-family:'Plus Jakarta Sans',system-ui,sans-serif; font-weight:700; font-size:1.3rem; line-height:1.25; margin:0 0 0.25rem; color:#0f172a; }
.bd-newsletter-sub { margin:0; font-size:0.93rem; color:#475569; line-height:1.5; }
.bd-newsletter-form { display:flex; gap:0.5rem; align-items:center; }
.bd-newsletter-form input { padding:0.7rem 1rem; border:1px solid #e6e8ec; border-radius:999px; font:inherit; font-size:0.92rem; min-width:240px; background:#fff; }
.bd-newsletter-form input:focus { outline:none; border-color:#7c3aed; box-shadow:0 0 0 3px rgba(124,58,237,0.12); }
.bd-newsletter-form button { display:inline-flex; align-items:center; gap:0.4rem; padding:0.7rem 1.25rem; background:#0f172a; color:#fff; border:0; border-radius:999px; cursor:pointer; font:inherit; font-weight:700; font-size:0.92rem; transition:background .18s; }
.bd-newsletter-form button:hover { background:#1e293b; }
@media (max-width:780px) {
  .bd-newsletter-card { grid-template-columns:1fr; text-align:left; padding:1.5rem; }
  .bd-newsletter-icon { width:48px; height:48px; font-size:1.15rem; }
  .bd-newsletter-form { flex-direction:column; align-items:stretch; gap:0.6rem; }
  .bd-newsletter-form input { width:100%; min-width:0; }
  .bd-newsletter-form button { width:100%; justify-content:center; }
}

/* ============================
   Featured slider (bl-feat-*)
   ============================ */
.bl-feat-slider { position: relative; }
.bl-feat-slide {
  position: absolute;
  top: 0; left: 0; right: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s ease, visibility 0.5s;
}
.bl-feat-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Featured kart içi meta (üst satır) */
.bl-feat-body .bl-feat-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.bl-feat-body .bl-feat-meta .bl-pill { margin: 0; }
.bl-feat-meta-date,
.bl-feat-meta-read {
  font-size: 0.92rem;
  color: #6b7280;
  font-weight: 500;
}

/* Dots — kartın altında ortalı */
.bl-feat-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  margin-top: 1.25rem;
}
.bl-feat-dot {
  appearance: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: #e2e8f0;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}
.bl-feat-dot:hover { background: #cbd0d6; }
.bl-feat-dot.is-active {
  background: #94a3b8;
  width: 28px;
  border-radius: 999px;
}

/* ============================
   Blog detay (bd-*) — mobil
   ============================ */
@media (max-width: 768px) {
  .bd-container { padding: 0 1rem; }
  .bd-hero { padding: 1.75rem 0 1rem; }
  .bd-breadcrumb { font-size: 0.85rem; margin-bottom: 1rem; gap: 0.4rem; }
  .bd-title { font-size: clamp(1.6rem, 6.4vw, 2.1rem); margin-bottom: 1rem; }
  .bd-meta { font-size: 0.85rem; gap: 0.55rem; }

  .bd-cover { padding: 0.5rem 0 1.25rem; }
  .bd-cover img { max-height: 280px; border-radius: 14px; }

  .bd-body { padding: 0.5rem 0 1.5rem; }
  .bd-grid { gap: 1.5rem; }
  .bd-content { font-size: 1rem; line-height: 1.7; }
  .bd-content .bd-lead { font-size: 1.08rem; }
  .bd-content h2 { font-size: clamp(1.3rem, 5vw, 1.6rem); margin: 1.8rem 0 0.8rem; }
  .bd-content h3 { font-size: 1.1rem; margin: 1.4rem 0 0.55rem; }
  .bd-content blockquote { padding: 0.85rem 1rem; font-size: 0.98rem; margin: 1.2rem 0; }

  .bd-callout { padding: 0.85rem 1rem; font-size: 0.92rem; grid-template-columns: 22px 1fr; gap: 0.65rem; }
  .bd-feature { padding: 1rem 1.1rem; }
  .bd-feature-list li { font-size: 0.92rem; }
  .bd-tip { grid-template-columns: 24px 1fr; padding: 0.9rem 1rem; }
  .bd-tip-body { font-size: 0.92rem; }

  /* Tablolar mobilde yatay scroll alsın, taşmasın */
  .bd-ctable-wrap,
  .bd-table-wrap,
  .blog-detay-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .bd-ctable, .bd-table { min-width: 480px; font-size: 0.9rem; }
  .bd-ctable thead th,
  .bd-ctable tbody td,
  .bd-table th,
  .bd-table td { padding: 0.7rem 0.85rem; }

  .bd-steps li { grid-template-columns: 34px 1fr; padding: 0.85rem 1rem; font-size: 0.94rem; gap: 0.75rem; }
  .bd-steps li::before { width: 28px; height: 28px; font-size: 0.85rem; }

  .bd-inline-image { margin: 0.6rem 0 1.4rem; }
  .bd-inline-image img { border-radius: 12px; }

  .bd-end-share { gap: 0.65rem; margin-top: 1rem; }
  .bd-share-btn { width: 36px; height: 36px; }

  /* Sticky sidebar mobilde gereksiz; aside akışta kalsın */
  .bd-aside { gap: 1rem; }
  .bd-aside-cta { padding: 1.2rem; }

  .bd-related { padding: 2rem 0 1rem; }
  .bd-related-title { font-size: clamp(1.25rem, 5vw, 1.6rem); }
  .bd-related-card { border-radius: 12px; }
  .bd-related-thumb { aspect-ratio: 16/9; padding: 0.85rem; }
  .bd-related-body { padding: 1rem; }

  .bd-newsletter { padding: 1.5rem 0 2rem; }
  .bd-newsletter-card { padding: 1.4rem 1.25rem; gap: 1rem; }
  .bd-newsletter-title { font-size: 1.15rem; }
  .bd-newsletter-sub { font-size: 0.88rem; }
}

@media (max-width: 420px) {
  .bd-meta { gap: 0.4rem 0.55rem; }
  .bd-meta-sep { display: none; }
  .bd-content ul, .bd-content ol { padding-left: 1.1rem; }
}

/* ============================
   Blog mobile polish
   ============================ */
@media (max-width: 900px) {
  .blog-page,
  .bl-page,
  .bd-main {
    overflow-x: clip;
  }

  .bl-main img,
  .bl-main video,
  .bd-main img,
  .bd-main video {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 768px) {
  .bl-main {
    padding-bottom: 2.5rem;
  }

  .bl-container,
  .bd-container {
    width: 100%;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .bl-hero {
    padding: 2rem 0 0.85rem;
  }

  .bl-hero-title {
    font-size: clamp(2rem, 8.6vw, 2.65rem);
    line-height: 1.06;
    letter-spacing: -0.04em;
    text-wrap: balance;
  }

  .bl-toolbar {
    padding-bottom: 1rem;
  }

  .bl-toolbar-row {
    align-items: stretch;
  }

  .bl-search {
    min-height: 46px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
  }

  .bl-search-input {
    font-size: 1rem;
  }

  .bl-cats {
    margin-left: -0.25rem;
    margin-right: -0.25rem;
    scroll-padding-inline: 0.25rem;
  }

  .bl-cat {
    min-height: 40px;
    white-space: nowrap;
  }

  .bl-featured {
    padding-top: 1.15rem;
  }

  .bl-feat-card,
  .bl-card-link {
    border-radius: 20px;
  }

  .bl-feat-thumb {
    aspect-ratio: 16 / 9;
    padding: 1rem;
  }

  .bl-feat-body {
    padding: 1.25rem;
  }

  .bl-list-section {
    padding-top: 1.1rem;
  }

  .bl-grid {
    gap: 1rem;
  }

  .bl-card-link {
    min-height: 0;
  }

  .bl-card-thumb {
    aspect-ratio: auto;
    height: 148px;
    padding: 1rem;
  }

  .bl-card-thumb img,
  .bl-card-thumb svg {
    max-height: 118px;
    object-fit: contain;
  }

  .bl-card-body {
    padding: 1rem 1rem 1.1rem;
    gap: 0.55rem;
  }

  .bl-card-title {
    font-size: 1.05rem;
    line-height: 1.28;
    -webkit-line-clamp: 3;
  }

  .bl-card-excerpt {
    line-height: 1.55;
    -webkit-line-clamp: 3;
  }

  .bl-card-cta {
    min-height: 36px;
  }

  .bd-main {
    padding-bottom: 2.5rem;
  }

  .bd-hero {
    padding: 1.35rem 0 0.9rem;
  }

  .bd-hero-topbar {
    min-height: 44px;
  }

  .bd-back,
  .bd-share-trigger {
    min-height: 40px;
  }

  .bd-share-trigger {
    border: 1px solid #e6e8ec;
    border-radius: 999px;
    padding: 0.55rem 0.8rem;
  }

  .bd-hero-grid {
    gap: 1rem;
  }

  .bd-hero-icon {
    width: 96px;
    height: 96px;
  }

  .bd-title {
    font-size: clamp(1.75rem, 7.4vw, 2.25rem);
    line-height: 1.12;
    letter-spacing: -0.035em;
    text-wrap: balance;
  }

  .bd-meta {
    gap: 0.45rem 0.65rem;
  }

  .bd-content {
    font-size: 1rem;
    line-height: 1.78;
    overflow-wrap: anywhere;
  }

  .bd-content p,
  .bd-content li,
  .bd-content a {
    overflow-wrap: anywhere;
  }

  .bd-content h2 {
    font-size: clamp(1.35rem, 5.4vw, 1.65rem);
    line-height: 1.22;
  }

  .bd-content h3 {
    font-size: 1.12rem;
    line-height: 1.3;
  }

  .bd-content .ql-ui {
    display: none;
  }

  .bd-content li[data-list="bullet"] {
    list-style-type: disc;
  }

  .bd-toc {
    background: #f8fafc;
    border: 1px solid #e6e8ec;
    border-radius: 14px;
    padding: 1rem;
  }

  .bd-toc-title {
    margin-bottom: 0.65rem;
  }

  .bd-end-share {
    align-items: center;
  }

  .bd-share-list {
    width: 100%;
    justify-content: center;
  }

  .bd-share-btn {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 420px) {
  .bl-card-thumb {
    height: 132px;
  }

  .bl-card-thumb img,
  .bl-card-thumb svg {
    max-height: 104px;
  }

  .bl-pg {
    min-width: 34px;
    height: 34px;
  }

  .bd-content {
    line-height: 1.74;
  }
}

/* Created-post safety net: admin/AI content should never break mobile layout. */
.bd-article,
.bd-content {
  min-width: 0;
  max-width: 100%;
}

.bd-content *,
.bd-content *::before,
.bd-content *::after {
  box-sizing: border-box;
}

.bd-content img,
.bd-content picture,
.bd-content video,
.bd-content canvas,
.bd-content svg {
  max-width: 100%;
  height: auto;
}

.bd-content img[style],
.bd-content video[style] {
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
}

.bd-content figure {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.bd-content iframe,
.bd-content object,
.bd-content embed {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: 14px;
}

.bd-content pre {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: pre;
}

.bd-content code {
  overflow-wrap: anywhere;
}

.bd-content table:not(.bd-table):not(.bd-ctable):not(.blog-detay-table) {
  display: block;
  width: max-content;
  min-width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
}

.bd-content table:not(.bd-table):not(.bd-ctable):not(.blog-detay-table) th,
.bd-content table:not(.bd-table):not(.bd-ctable):not(.blog-detay-table) td {
  padding: 0.75rem 0.85rem;
  border: 1px solid #e6e8ec;
  vertical-align: top;
}

@media (max-width: 768px) {
  .bd-content [style*="min-width"],
  .bd-content [style*="width"] {
    max-width: 100% !important;
  }

  .bd-content table[style] {
    width: max-content !important;
    min-width: 100% !important;
  }
}

/* ── İlgili yazılar (SEO + internal linking) ── */
.bd-related { padding: 2.5rem clamp(1rem, 4vw, 2.5rem) 4rem; background: #f8fafc; }
.bd-related .bd-container { max-width: 1112px; margin: 0 auto; }
.bd-related__title { font-size: clamp(1.4rem, 2.4vw, 1.85rem); font-weight: 800; color: #0f172a; margin: 0 0 1.5rem; letter-spacing: -0.02em; }
.bd-related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.bd-related__card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .2s, border-color .2s; }
.bd-related__card:hover { transform: translateY(-3px); border-color: #c7d2fe; box-shadow: 0 10px 28px -16px rgba(15,23,42,.18); }
.bd-related__thumb { aspect-ratio: 16/9; background: #f1f5f9; overflow: hidden; }
.bd-related__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bd-related__body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.45rem; flex: 1; }
.bd-related__cat { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #4f46e5; }
.bd-related__h { font-size: 1rem; font-weight: 700; line-height: 1.35; color: #0f172a; margin: 0; letter-spacing: -0.01em; }
.bd-related__excerpt { margin: 0; color: #475569; font-size: 0.875rem; line-height: 1.55; }
.bd-related__date { margin-top: auto; font-size: 0.75rem; color: #94a3b8; }
@media (max-width: 900px) { .bd-related__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .bd-related__grid { grid-template-columns: 1fr; } .bd-related { padding: 2rem 1rem 3rem; } }
