/* =========================================================
   Public site styles — English-first (USA / UK / Europe).
   Inspired by mawdoo3.com structure (slider + search + categories)
   with a modern PDFNio-like polish.
   ========================================================= */

:root {
  --color-bg: #ffffff;
  --color-surface: #fafafa;
  --color-surface-2: #f3f4f6;
  --color-border: #e5e7eb;
  --color-text: #111827;
  --color-text-muted: #6b7280;
  --color-primary: #1f6feb;
  --color-primary-dark: #1657c0;
  --color-accent: #ff6b6b;
  --color-pink: #ec4899;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .05);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, .08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, .12);
  --container: 1200px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -.005em;
}
h1, h2, h3, h4 { letter-spacing: -.01em; }
.section-title, .section-head h2, .cat-card h3, .blog-card h3, .article h1 { font-family: var(--font-serif); font-weight: 800; }
.hero-text h1 { font-weight: 800; }
img { max-width: 100%; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dark); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ----- Header ----- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.88); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid rgba(229,233,240,.8); }
.nav-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 20px; padding: 12px 20px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.2rem; color: var(--color-text); }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--color-primary), var(--color-pink)); color: #fff; font-weight: 800; }
.brand-mark-img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; display: block; }
.primary-nav { display: flex; gap: 18px; flex: 1; }
.primary-nav a { color: var(--color-text); font-weight: 500; font-size: .95rem; }
.primary-nav a:hover { color: var(--color-primary); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-search { display: flex; align-items: center; gap: 8px; background: var(--color-surface-2); border-radius: 999px; padding: 8px 14px; min-width: 240px; }
.nav-search input { border: 0; background: transparent; outline: none; flex: 1; font-size: .9rem; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; cursor: pointer; transition: all .15s ease; font-size: .95rem; }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--color-text); border-color: var(--color-border); }
.btn-ghost:hover { background: var(--color-surface-2); color: var(--color-text); }
.btn-small { padding: 7px 14px; font-size: .85rem; }

/* ----- Hero (split: text on left, glass card stack on right) ----- */
.hero { position: relative; padding: 78px 0 52px; overflow: hidden; background: linear-gradient(180deg, #ffffff 0%, #f8fbff 58%, #ffffff 100%); border-bottom: 1px solid #eaf1fa; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-orb { position: absolute; width: 380px; height: 380px; border-radius: 50%; filter: blur(80px); opacity: .6; }
.hero-orb-a { top: -120px; left: -100px; background: radial-gradient(circle, #c4b5fd, transparent 70%); }
.hero-orb-b { bottom: -100px; right: -100px; background: radial-gradient(circle, #fbcfe8, transparent 70%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.hero-text h1 { font-family: var(--font-serif); font-size: clamp(2rem, 4.3vw, 3.2rem); line-height: 1.08; margin: 14px 0 14px; max-width: 18ch; }
.hero-text p { color: #475569; font-size: 1.05rem; margin: 0 0 20px; max-width: 590px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: #eaf1ff; color: #1e40af; padding: 6px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .2px; }
.hero-eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-primary); box-shadow: 0 0 0 4px rgba(31,111,235,.18); }
.text-gradient { background: linear-gradient(135deg, var(--color-primary), var(--color-pink)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #dbe5f2; border-radius: 999px; padding: 7px 7px 7px 18px; box-shadow: 0 10px 30px rgba(15,23,42,.06); max-width: 620px; }
.hero-search input { flex: 1; border: 0; outline: none; font-size: 1rem; padding: 12px 0; background: transparent; }
.hero-search-icon { color: var(--color-text-muted); display: inline-flex; align-items: center; justify-content: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.trust-row { list-style: none; display: flex; flex-wrap: wrap; gap: 14px; padding: 0; margin: 18px 0 0; color: var(--color-text-muted); font-size: .85rem; }
.trust-row li { display: inline-flex; align-items: center; gap: 6px; }
.trust-row .dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-green { background: #10b981; } .dot-blue { background: #3b82f6; } .dot-violet { background: #a855f7; }

.hero-card-stack { position: relative; min-height: 380px; }
.hero-card { background: rgba(255,255,255,.84); backdrop-filter: blur(10px); border: 1px solid #dde6f2; border-radius: 18px; padding: 16px 18px; box-shadow: 0 20px 40px rgba(15,23,42,.08); }
.hero-card-main { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.hero-card-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.hero-card-row + .hero-card-row { border-top: 1px solid var(--color-border); }
.hero-card-row strong { display: block; font-size: .98rem; }
.hero-card-row small { color: var(--color-text-muted); font-size: .82rem; }
.hero-mini-icon { width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #ec4899, #f97316); color: #fff; flex: 0 0 auto; }
.hero-mini-icon svg { width: 20px; height: 20px; }
.hero-mini-icon-violet { background: linear-gradient(135deg, #6366f1, #a855f7); }
.hero-mini-icon-teal { background: linear-gradient(135deg, #0ea5e9, #14b8a6); }
.hero-mini-icon-orange { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.hero-tag { margin-left: auto; background: #dcfce7; color: #166534; font-size: .72rem; font-weight: 800; padding: 4px 8px; border-radius: 999px; }
.hero-tag.tag-violet { background: #ede9fe; color: #5b21b6; }
.hero-tag.tag-teal { background: #ccfbf1; color: #0f766e; }
.hero-card-mini { position: absolute; bottom: 6px; right: -12px; display: flex; align-items: center; gap: 10px; padding: 12px 16px; }

/* ----- AI strip + flow cards (homepage depth) ----- */
.ai-strip { padding-top: 6px; }
.ai-strip-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ai-pill-card { display: flex; gap: 10px; padding: 16px; border: 1px solid #e2e8f0; border-radius: 14px; background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%); box-shadow: var(--shadow-sm); }
.ai-pill-card-dot { width: 10px; height: 10px; border-radius: 50%; background: #2563eb; margin-top: 7px; box-shadow: 0 0 0 6px rgba(37,99,235,.12); flex: 0 0 auto; }
.ai-pill-card .ai-dot-violet { background: #7c3aed; box-shadow: 0 0 0 6px rgba(124,58,237,.12); }
.ai-pill-card .ai-dot-teal { background: #0d9488; box-shadow: 0 0 0 6px rgba(13,148,136,.12); }
.ai-pill-card strong { display: block; font-size: .98rem; }
.ai-pill-card p { margin: 4px 0 0; color: var(--color-text-muted); font-size: .88rem; line-height: 1.45; }

.ai-flow-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ai-flow-card { border: 1px solid #dbe6ff; border-radius: 16px; background: linear-gradient(135deg, #f8fbff 0%, #ffffff 65%); padding: 18px; box-shadow: var(--shadow-sm); }
.ai-step { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 24px; border-radius: 999px; background: #1f6feb; color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .4px; }
.ai-flow-card h3 { margin: 10px 0 6px; font-size: 1.05rem; }
.ai-flow-card p { margin: 0; color: var(--color-text-muted); font-size: .9rem; }

/* ----- Section heads ----- */
.section { padding: 30px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.section-head h2 { font-family: var(--font-serif); margin: 0; font-size: 1.6rem; }
.section-head .section-sub { color: var(--color-text-muted); margin: 4px 0 0; }

/* ----- Search bar (centered, big) ----- */
.search-block { padding: 32px 0; }
.search-shell { background: linear-gradient(135deg, #f8fafc, #f3f4f6); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); border: 1px solid var(--color-border); text-align: center; }
.search-shell h3 { font-family: var(--font-serif); margin: 0 0 8px; font-size: 1.4rem; }
.search-shell p { color: var(--color-text-muted); margin: 0 0 18px; }
.search-form { display: flex; gap: 8px; max-width: 640px; margin: 0 auto; }
.search-form input { flex: 1; padding: 13px 18px; border-radius: 999px; border: 1px solid var(--color-border); font-size: 1rem; outline: none; }
.search-form input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(31,111,235,.18); }
.search-form button { padding: 12px 22px; border-radius: 999px; }

/* ----- Category grid ----- */
.section-title { font-family: var(--font-serif); font-size: 1.6rem; margin: 0 0 6px; }
.section-meta { color: var(--color-text-muted); font-size: .95rem; margin: 0 0 18px; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; padding: 6px 0; }
.cat-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cat-card { display: flex; flex-direction: column; align-items: flex-start; padding: 18px; border-radius: 14px; border: 1px solid var(--color-border); background: #fff; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; min-height: 150px; color: var(--color-text); position: relative; overflow: hidden; }
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(15,23,42,.1); color: var(--color-text); border-color: #d8e4f5; }
.cat-card-icon { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 6px 14px rgba(31, 111, 235, .15); }
.cat-card-icon svg { width: 22px; height: 22px; }
.cat-card h3 { font-family: var(--font-serif); font-size: 1.05rem; margin: 12px 0 4px; }
.cat-card p { color: var(--color-text-muted); font-size: .82rem; margin: 0; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-card-meta { display: inline-flex; align-items: center; gap: 4px; margin-top: auto; padding-top: 12px; color: var(--color-primary); font-size: .8rem; font-weight: 700; }
.center-actions { display: flex; justify-content: center; padding-top: 18px; }

/* All categories page */
.categories-hero { position: relative; overflow: hidden; padding: 54px 0 28px; background: linear-gradient(180deg, #fff 0%, #eef4ff 55%, #fff 100%); border-bottom: 1px solid #eaf0fa; }
.categories-hero h1 { margin: 10px 0 8px; font-size: clamp(1.9rem, 4.2vw, 2.8rem); line-height: 1.1; }
.categories-hero p { max-width: 760px; margin: 0; color: var(--color-text-muted); }
.cat-card-ai { border-color: #dbe7ff; background: linear-gradient(180deg, #fff 0%, #f8fbff 100%); }
.cat-card-ai-meta { margin-top: auto; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 12px; }
.mini-pill { background: #e0e7ff; color: #3730a3; border-radius: 999px; padding: 4px 9px; font-size: .72rem; font-weight: 700; }

/* Legal pages */
.legal-hero { padding: 52px 0 24px; background: linear-gradient(180deg, #fff 0%, #f5f8ff 65%, #fff 100%); border-bottom: 1px solid #e8eefb; }
.legal-hero-inner { max-width: 920px; }
.legal-kicker { display: inline-flex; align-items: center; background: #e0e7ff; color: #3730a3; border-radius: 999px; padding: 5px 10px; font-size: .74rem; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; }
.legal-hero h1 { margin: 10px 0 8px; font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.1; }
.legal-hero p { margin: 0 0 8px; max-width: 72ch; color: #475569; font-size: 1rem; }
.legal-hero small { color: #64748b; font-size: .84rem; }
.legal-wrap { max-width: 980px; }
.legal-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 24px; box-shadow: var(--shadow-sm); }
.legal-card h2 { margin: 28px 0 10px; font-size: 1.28rem; }
.legal-card h2:first-child { margin-top: 0; }
.legal-card p { margin: 0 0 12px; color: #334155; line-height: 1.72; }
.legal-card ul { margin: 0 0 12px; padding-left: 1.2rem; color: #334155; }
.legal-card li { margin: 7px 0; line-height: 1.6; }

/* ----- Category section + cards grid ----- */
.cat-block { padding: 30px 0; border-top: 1px solid var(--color-border); }
.cat-block-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
.cat-block-head h2 { font-family: var(--font-serif); margin: 0; font-size: 1.5rem; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.blog-card { background: #fff; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--color-border); transition: transform .15s ease, box-shadow .15s ease; display: flex; flex-direction: column; color: var(--color-text); }
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: var(--color-text); }
.blog-card-cover { width: 100%; aspect-ratio: 16/9; background: var(--color-surface-2); object-fit: cover; }
.blog-card-body { padding: 14px 16px 18px; }
.blog-card-cat { font-size: .72rem; font-weight: 700; color: var(--color-primary); text-transform: uppercase; letter-spacing: 1px; }
.blog-card h3 { font-family: var(--font-serif); margin: 6px 0 6px; font-size: 1.1rem; line-height: 1.3; }
.blog-card p { color: var(--color-text-muted); font-size: .9rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ----- Single blog page (pdfnio-like) ----- */
.blog-hero-pro { padding: 34px 0 22px; background: linear-gradient(180deg, #fff 0%, #f7faff 62%, #fff 100%); border-bottom: 1px solid #edf1f7; }
.blog-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px; align-items: center; }
.blog-back { display: inline-flex; color: #475569; font-size: .9rem; margin-bottom: 8px; }
.blog-back:hover { color: #0f172a; }
.blog-tag { display: inline-flex; align-items: center; gap: 7px; background: #eef2ff; color: #3730a3; border-radius: 999px; padding: 4px 10px; font-size: .73rem; font-weight: 700; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #6366f1; }
.blog-hero-text h1 { margin: 10px 0 10px; font-size: clamp(1.8rem, 3.8vw, 2.7rem); line-height: 1.12; }
.blog-hero-meta { margin: 0; color: #64748b; font-size: .9rem; }
.blog-hero-lead { margin: 12px 0 0; color: #475569; font-size: 1rem; line-height: 1.6; max-width: 62ch; }
.blog-hero-figure img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 16px; box-shadow: 0 16px 36px rgba(15,23,42,.16); }

.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.blog-article-pro { background: #fff; border: 1px solid var(--color-border); border-radius: 14px; padding: 20px; box-shadow: var(--shadow-sm); }
.blog-article-pro .content h2 { margin: 28px 0 10px; font-size: 1.45rem; }
.blog-article-pro .content h3 { margin: 22px 0 8px; font-size: 1.2rem; }
.blog-article-pro .content p { margin: 12px 0; font-size: 1.03rem; }
.blog-article-pro .content ul, .blog-article-pro .content ol { padding-left: 1.4rem; }
.blog-article-pro .content li { margin: 6px 0; }

.blog-share-card { margin: 24px 0; border: 1px solid #dbe6ff; border-radius: 14px; background: linear-gradient(180deg, #f8fbff 0%, #fff 100%); padding: 14px; }
.blog-share-head strong { display: block; font-size: 1rem; }
.blog-share-buttons { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; padding: 8px 11px; border: 1px solid #d7e0ec; color: #0f172a; background: #fff; font-size: .82rem; font-weight: 600; text-decoration: none; }
.share-btn:hover { border-color: #1f6feb; color: #1f6feb; }
.share-copy { cursor: pointer; }

.blog-sidebar { display: grid; gap: 14px; position: sticky; top: 92px; }
.sidebar-card { border: 1px solid var(--color-border); border-radius: 14px; background: #fff; padding: 14px; box-shadow: var(--shadow-sm); }
.sidebar-card h3 { margin: 0 0 8px; font-size: 1rem; }
.sidebar-tools { display: grid; gap: 8px; }
.sidebar-tool { display: flex; align-items: center; gap: 8px; color: var(--color-text); text-decoration: none; padding: 8px 8px; border-radius: 10px; border: 1px solid transparent; }
.sidebar-tool:hover { background: #f8fafc; border-color: #e2e8f0; color: var(--color-text); }
.tool-icon { width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: #fff; flex: 0 0 auto; }
.tool-icon svg { width: 17px; height: 17px; }
.sidebar-tool-name { font-size: .9rem; font-weight: 600; }
.sidebar-related { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sidebar-related a { color: #334155; text-decoration: none; font-size: .9rem; }
.sidebar-related a:hover { color: #0f172a; text-decoration: underline; }

/* Legacy share chips kept for footer */
.share-row { display: flex; gap: 10px; align-items: center; margin: 24px 0; padding: 16px; border-radius: var(--radius-md); background: var(--color-surface-2); border: 1px solid var(--color-border); flex-wrap: wrap; }
.share-row strong { font-size: .9rem; }
.icon-chip { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--color-text); border: 1px solid var(--color-border); transition: all .15s ease; }
.icon-chip:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.icon-chip svg { width: 18px; height: 18px; }

/* Comments (blog page) */
.comments-box { margin: 24px 0 0; border: 1px solid var(--color-border); border-radius: 14px; background: #fff; padding: 18px; }
.comments-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.comments-head h2 { margin: 0; font-size: 1.2rem; font-weight: 800; }
.comments-count { background: #eef2ff; color: #4338ca; border-radius: 999px; padding: 4px 10px; font-size: .78rem; font-weight: 700; }
.comments-sub { margin: 0 0 12px; color: var(--color-text-muted); font-size: .9rem; }
.comment-form { display: grid; gap: 10px; margin-bottom: 16px; }
.comment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.comment-form label span { display: block; font-size: .85rem; font-weight: 600; margin: 0 0 6px; }
.fld { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--color-border); outline: none; font: inherit; }
.fld:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(31,111,235,.15); }
.comment-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.comment-item { display: grid; grid-template-columns: 36px 1fr; gap: 10px; border-top: 1px solid var(--color-border); padding-top: 10px; }
.comment-avatar { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #e0e7ff; color: #3730a3; font-weight: 700; font-size: .86rem; }
.comment-meta { display: flex; align-items: baseline; gap: 8px; }
.comment-meta strong { font-size: .92rem; }
.comment-meta span { color: var(--color-text-muted); font-size: .8rem; }
.comment-body p { margin: 4px 0 0; white-space: pre-line; color: #334155; }
.comments-empty { margin: 0; color: var(--color-text-muted); font-size: .9rem; }

/* ----- Footer (PDFNio-inspired) ----- */
.site-footer { background: #0f172a; color: #cbd5e1; padding: 50px 0 28px; margin-top: 50px; }
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 36px; }
.footer-grid section p { color: #9ca3af; font-size: .9rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 6px 0; }
.footer-links a { color: #cbd5e1; font-size: .9rem; }
.footer-links a:hover { color: #fff; }
.footer-share-block { margin-top: 22px; }
.footer-share-block h4 { font-size: .9rem; }
.footer-share-block .share-row { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.06); color: #cbd5e1; }
.footer-share-block .icon-chip { background: rgba(255,255,255,.06); color: #cbd5e1; border-color: rgba(255,255,255,.08); }
.footer-share-block .icon-chip:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.footer-bottom { padding: 22px 20px 0; margin-top: 28px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; color: #9ca3af; font-size: .85rem; }

/* Cookie consent */
.cookie-consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 120; padding: 10px 14px 14px; }
.cookie-consent-inner { max-width: 980px; margin: 0 auto; background: #0f172a; color: #cbd5e1; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; box-shadow: 0 18px 36px rgba(2,6,23,.35); }
.cookie-consent p { margin: 0; font-size: .88rem; line-height: 1.45; }
.cookie-consent a { color: #93c5fd; text-decoration: underline; }
.cookie-consent-actions { display: flex; gap: 8px; align-items: center; }
.cookie-consent .btn-ghost { border-color: rgba(255,255,255,.22); color: #e2e8f0; }
.cookie-consent .btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }

/* ----- Pagination ----- */
.pagination { display: flex; justify-content: center; gap: 8px; padding: 30px 0; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: 8px; border: 1px solid var(--color-border); color: var(--color-text); font-size: .9rem; }
.pagination a:hover { background: var(--color-surface-2); }
.pagination .current { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* ----- Mobile nav ----- */
.nav-mobile-toggle { display: none; background: transparent; border: 0; padding: 8px; cursor: pointer; color: var(--color-text); }
.mobile-nav-panel { display: none; padding: 12px 20px 18px; border-top: 1px solid var(--color-border); }
.mobile-nav-panel a { display: block; padding: 10px 4px; border-bottom: 1px solid var(--color-border); color: var(--color-text); font-weight: 500; }
.mobile-nav-panel a:last-child { border-bottom: 0; }
.is-mobile-nav-open .mobile-nav-panel { display: block; }

/* ----- CTA banner ----- */
.cta-banner { background: linear-gradient(135deg, var(--color-primary), var(--color-pink)); color: #fff; border-radius: 18px; padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; box-shadow: var(--shadow-md); }
.cta-banner h2 { font-family: var(--font-serif); margin: 0 0 4px; font-size: 1.5rem; color: #fff; }
.cta-banner p { color: rgba(255,255,255,.9); margin: 0; }
.cta-banner .btn-ghost { background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.35); }
.cta-banner .btn-ghost:hover { background: rgba(255,255,255,.28); color: #fff; }
.cta-banner .btn-primary { background: #fff; color: var(--color-primary); }
.cta-banner .btn-primary:hover { background: #f3f4f6; color: var(--color-primary-dark); }

/* ----- Responsive ----- */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-search { display: none; }
  .primary-nav { display: none; }
  .nav-mobile-toggle { display: inline-flex; }
  .nav-row { grid-template-columns: auto auto auto; justify-content: space-between; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-card-stack { min-height: auto; }
  .hero-card-mini { position: static; margin-top: 12px; }
  .blog-hero-grid { grid-template-columns: 1fr; }
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
  .cat-grid-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-strip-grid, .ai-flow-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
  .hero { padding: 36px 0 16px; }
  .cat-grid, .cat-grid-three { grid-template-columns: repeat(2, 1fr); }
  .cat-card { min-height: 140px; padding: 14px; }
  .blog-article-pro { padding: 16px; }
  .legal-card { padding: 18px; }
  .blog-share-buttons { display: grid; grid-template-columns: 1fr 1fr; }
  .cta-banner { padding: 22px; }
  .cta-banner h2 { font-size: 1.2rem; }
  .comment-grid { grid-template-columns: 1fr; }
  .cookie-consent-inner { padding: 12px; }
  .cookie-consent-actions { width: 100%; }
  .cookie-consent-actions .btn { flex: 1; justify-content: center; }
}
@media (max-width: 380px) {
  .cat-grid, .cat-grid-three { grid-template-columns: repeat(1, 1fr); }
  .cat-card { padding: 12px; min-height: 120px; }
}
