/* ============================================================
   AES SECURITY — BLOG SHARED STYLES
============================================================ */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

:root {
  --red:#ff1a1a; --red-glow:rgba(255,26,26,.38); --red-dim:rgba(255,26,26,.12);
  --red-border:rgba(255,26,26,.22); --red-subtle:rgba(255,26,26,.06);
  --bg:#080810; --bg2:#0d0d1a; --bg3:#111122;
  --surface:rgba(16,16,32,.6);
  --b1:rgba(255,255,255,.07); --b2:rgba(255,255,255,.13); --b3:rgba(255,255,255,.2);
  --t1:#f0eef6; --t2:rgba(240,238,246,.62); --t3:rgba(240,238,246,.35);
  --sans:'Epilogue',system-ui,sans-serif;
  --serif:'Google Sans',system-ui,sans-serif;
  --mono:'JetBrains Mono',monospace;
  --ease:cubic-bezier(.22,1,.36,1);
  --max:760px;
}

html { background:var(--bg); scroll-behavior:smooth; }
body { font-family:var(--sans); color:var(--t1); background:var(--bg);
  -webkit-font-smoothing:antialiased; overflow-x:hidden; }
a { color:inherit; text-decoration:none; }
img { max-width:100%; }

/* ---- NAV ---- */
.blog-nav { position:sticky; top:0; z-index:100;
  background:rgba(8,8,16,.88); backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  border-bottom:1px solid var(--b1); padding:16px 0; }
.blog-nav .container { display:flex; align-items:center;
  justify-content:space-between; gap:20px; }
.nav-logo { display:flex; align-items:center; gap:10px;
  font-family:var(--serif); font-size:20px; font-weight:800; color:var(--t1); }
.nav-logo img { height:36px; width:auto; }
.nav-links-blog { display:flex; align-items:center; gap:24px; }
.nav-links-blog a { font-size:14px; font-weight:500; color:var(--t2);
  transition:color .2s; }
.nav-links-blog a:hover { color:var(--t1); }
.nav-cta { font-size:13px; font-weight:600; color:#fff;
  background:var(--red); padding:9px 22px; border-radius:9px;
  box-shadow:0 4px 18px rgba(255,26,26,.3); transition:box-shadow .25s; }
.nav-cta:hover { box-shadow:0 6px 28px rgba(255,26,26,.5); }

/* ---- CONTAINER ---- */
.container { width:100%; max-width:1160px; margin:0 auto;
  padding:0 clamp(16px,4vw,48px); }
.container-narrow { width:100%; max-width:820px; margin:0 auto;
  padding:0 clamp(16px,4vw,48px); }

/* ---- POST HERO ---- */
.post-hero { padding:clamp(64px,10vh,120px) 0 clamp(48px,6vh,80px);
  border-bottom:1px solid var(--b1); position:relative; overflow:hidden; }
.post-hero::before { content:''; position:absolute; top:0; left:0; right:0; bottom:0;
  background:radial-gradient(ellipse 80% 60% at 50% 0%,
    rgba(255,26,26,.07) 0%, transparent 70%); pointer-events:none; }
.post-hero::after { content:''; position:absolute; inset:0;
  background-image:linear-gradient(rgba(255,255,255,.013) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.013) 1px, transparent 1px);
  background-size:72px 72px;
  mask-image:radial-gradient(ellipse 90% 80% at 50% 0%, black, transparent 75%);
  pointer-events:none; }
.post-hero .container-narrow { position:relative; z-index:1; }

.post-meta-bar { display:flex; align-items:center; gap:14px;
  margin-bottom:24px; flex-wrap:wrap; }
.post-category { font-family:var(--mono); font-size:10px; font-weight:600;
  text-transform:uppercase; letter-spacing:.22em; color:var(--red);
  background:var(--red-dim); border:1px solid var(--red-border);
  padding:4px 12px; border-radius:100px; }
.post-read-time { font-family:var(--mono); font-size:10px; color:var(--t3);
  letter-spacing:.12em; }
.post-date-pub { font-family:var(--mono); font-size:10px; color:var(--t3);
  letter-spacing:.12em; }

.post-h1 { font-family:var(--serif); font-size:clamp(32px,5.5vw,58px);
  line-height:1.05; font-weight:800; letter-spacing:-.025em; color:var(--t1);
  margin-bottom:22px; }
.post-h1 em { font-style:italic; color:var(--red); }

.post-intro { font-size:clamp(16px,1.6vw,19px); color:var(--t2);
  line-height:1.7; max-width:660px; margin-bottom:36px; }

.author-row { display:flex; align-items:center; gap:14px; padding-top:24px;
  border-top:1px solid var(--b1); }
.author-av { width:44px; height:44px; border-radius:50%; flex-shrink:0;
  background:var(--red-dim); border:1px solid var(--red-border);
  display:flex; align-items:center; justify-content:center;
  font-family:var(--mono); font-size:.72rem; font-weight:700; color:var(--red); }
.author-name { font-size:.88rem; font-weight:600; color:var(--t1); }
.author-title { font-size:.76rem; color:var(--t3); margin-top:2px; }

/* ---- POST BODY ---- */
.post-body { padding:clamp(48px,7vh,96px) 0; }

.post-content h2 { font-family:var(--serif); font-size:clamp(22px,3vw,32px);
  font-weight:800; letter-spacing:-.02em; color:var(--t1);
  margin:56px 0 16px; line-height:1.1; }
.post-content h2:first-child { margin-top:0; }
.post-content h3 { font-size:clamp(17px,2vw,21px); font-weight:700;
  color:var(--t1); margin:36px 0 12px; line-height:1.2; }
.post-content p { font-size:clamp(15.5px,1.4vw,17px); color:var(--t2);
  line-height:1.8; margin-bottom:20px; }
.post-content p strong { color:var(--t1); font-weight:600; }
.post-content p em { color:var(--red); font-style:normal; }
.post-content ul, .post-content ol { padding-left:24px;
  margin-bottom:24px; }
.post-content li { font-size:clamp(15px,1.3vw,16.5px); color:var(--t2);
  line-height:1.75; margin-bottom:10px; }
.post-content li strong { color:var(--t1); }
.post-content a:not(.btn-cta) { color:var(--red); text-decoration:underline;
  text-decoration-color:rgba(255,26,26,.3); transition:text-decoration-color .2s; }
.post-content a:not(.btn-cta):hover { text-decoration-color:var(--red); }

/* ---- ANSWER BOX (featured snippet bait) ---- */
.answer-box { background:rgba(255,26,26,.05); border:1px solid var(--red-border);
  border-left:3px solid var(--red); border-radius:12px; padding:24px 28px;
  margin:32px 0; }
.answer-box p { color:var(--t1) !important; font-size:clamp(15px,1.4vw,17px) !important;
  margin:0 !important; line-height:1.7 !important; }
.answer-box-label { font-family:var(--mono); font-size:9px; letter-spacing:.2em;
  text-transform:uppercase; color:var(--red); margin-bottom:10px; display:block; }

/* ---- TABLE ---- */
.table-wrap { overflow-x:auto; margin:32px 0; border-radius:14px;
  border:1px solid var(--b1); }
table { width:100%; border-collapse:collapse; font-size:14px; }
thead { background:rgba(255,26,26,.08); }
thead th { font-family:var(--mono); font-size:10px; text-transform:uppercase;
  letter-spacing:.14em; color:var(--red); padding:14px 18px;
  text-align:left; border-bottom:1px solid var(--b1); white-space:nowrap; }
tbody tr { border-bottom:1px solid var(--b1); transition:background .15s; }
tbody tr:last-child { border-bottom:none; }
tbody tr:hover { background:rgba(255,255,255,.025); }
tbody td { padding:14px 18px; color:var(--t2); line-height:1.5; }
tbody td:first-child { color:var(--t1); font-weight:500; }
tbody td strong { color:var(--t1); }

/* ---- CHECKLIST ---- */
.checklist { list-style:none; padding-left:0; margin:24px 0 32px; }
.checklist li { display:flex; align-items:flex-start; gap:12px;
  padding:12px 0; border-bottom:1px solid var(--b1);
  font-size:clamp(15px,1.3vw,16.5px); color:var(--t2); line-height:1.65; }
.checklist li:last-child { border-bottom:none; }
.check-icon { width:22px; height:22px; border-radius:50%;
  background:var(--red-dim); border:1px solid var(--red-border);
  flex-shrink:0; display:flex; align-items:center; justify-content:center;
  margin-top:2px; font-size:11px; color:var(--red); }

/* ---- CALLOUT ---- */
.callout { background:var(--bg2); border:1px solid var(--b1);
  border-radius:14px; padding:24px 28px; margin:32px 0; }
.callout h4 { font-size:14px; font-weight:700; color:var(--t1);
  margin-bottom:10px; }
.callout p { font-size:14px; color:var(--t2); line-height:1.65;
  margin:0; }

/* ---- STAT ROW ---- */
.stat-row { display:grid; grid-template-columns:repeat(3,1fr); gap:16px;
  margin:32px 0; }
.stat-block { background:var(--bg2); border:1px solid var(--b1);
  border-radius:14px; padding:24px; text-align:center; }
.stat-num { font-family:var(--serif); font-size:clamp(28px,4vw,40px);
  font-weight:800; color:var(--red); margin-bottom:6px; line-height:1; }
.stat-num span { font-size:.6em; }
.stat-label { font-size:13px; color:var(--t2); line-height:1.4; }

/* ---- CTA BOX ---- */
.cta-box { background:linear-gradient(135deg, rgba(255,26,26,.1), rgba(255,26,26,.04));
  border:1px solid var(--red-border); border-radius:20px; padding:clamp(32px,5vw,52px);
  text-align:center; margin:60px 0 0; position:relative; overflow:hidden; }
.cta-box::before { content:''; position:absolute; top:0; left:0; right:0; height:1px;
  background:linear-gradient(90deg,transparent,rgba(255,26,26,.6),transparent); }
.cta-box h2 { font-family:var(--serif); font-size:clamp(24px,3.5vw,38px);
  font-weight:800; color:var(--t1); margin-bottom:14px; letter-spacing:-.02em; }
.cta-box p { font-size:clamp(15px,1.4vw,17px); color:var(--t2);
  max-width:460px; margin:0 auto 30px; line-height:1.7; }
.btn-cta { display:inline-block; font-size:15px; font-weight:700; color:#fff;
  background:var(--red); padding:16px 38px; border-radius:12px;
  box-shadow:0 6px 28px rgba(255,26,26,.4); transition:box-shadow .25s,transform .2s; }
.btn-cta:hover { box-shadow:0 8px 40px rgba(255,26,26,.6);
  transform:translateY(-2px); color:#fff; }
.cta-note-small { font-family:var(--mono); font-size:11px; color:var(--t3);
  margin-top:16px; letter-spacing:.06em; }

/* ---- AUTHOR BIO ---- */
.author-bio { display:flex; gap:20px; align-items:flex-start;
  background:var(--bg2); border:1px solid var(--b1); border-radius:16px;
  padding:28px; margin:56px 0 0; }
.author-bio-av { width:56px; height:56px; border-radius:50%; flex-shrink:0;
  background:var(--red-dim); border:1px solid var(--red-border);
  display:flex; align-items:center; justify-content:center;
  font-family:var(--mono); font-size:.85rem; font-weight:700; color:var(--red); }
.author-bio-name { font-weight:700; color:var(--t1); margin-bottom:2px; }
.author-bio-title { font-size:.8rem; color:var(--red); margin-bottom:8px; }
.author-bio-desc { font-size:.875rem; color:var(--t2); line-height:1.65; }

/* ---- BREADCRUMB ---- */
.breadcrumb { display:flex; align-items:center; gap:8px; flex-wrap:wrap;
  padding:16px 0 0; }
.breadcrumb a { font-family:var(--mono); font-size:11px; color:var(--t3);
  letter-spacing:.08em; transition:color .2s; }
.breadcrumb a:hover { color:var(--red); }
.breadcrumb span { font-family:var(--mono); font-size:11px; color:var(--b2); }
.breadcrumb .current { font-family:var(--mono); font-size:11px; color:var(--t2); }

/* ---- DIVIDER ---- */
.divider { border:none; border-top:1px solid var(--b1); margin:48px 0; }

/* ---- FOOTER ---- */
.blog-footer { border-top:1px solid var(--b1); padding:56px 0 36px;
  background:var(--bg); }
.blog-footer-inner { display:flex; align-items:center;
  justify-content:space-between; gap:24px; flex-wrap:wrap; }
.footer-brand { display:flex; align-items:center; gap:8px;
  font-family:var(--serif); font-weight:800; color:var(--t1); font-size:18px; }
.footer-brand img { height:30px; width:auto; }
.footer-copy { font-size:.8rem; color:var(--t3); }
.footer-links { display:flex; gap:20px; flex-wrap:wrap; }
.footer-links a { font-size:.8rem; color:var(--t3); transition:color .2s; }
.footer-links a:hover { color:var(--t1); }

/* ---- BLOG INDEX ---- */
.blog-index-hero { padding:clamp(64px,10vh,120px) 0 clamp(48px,6vh,72px);
  border-bottom:1px solid var(--b1); text-align:center; position:relative;
  overflow:hidden; }
.blog-index-hero::before { content:''; position:absolute; inset:0;
  background:radial-gradient(ellipse 70% 60% at 50% 0%,
    rgba(255,26,26,.07) 0%, transparent 70%); pointer-events:none; }
.blog-eyebrow { font-family:var(--mono); font-size:10px; text-transform:uppercase;
  letter-spacing:.24em; color:var(--red); margin-bottom:18px; display:block; }
.blog-index-h1 { font-family:var(--serif); font-size:clamp(36px,6vw,72px);
  font-weight:800; letter-spacing:-.03em; color:var(--t1); line-height:.95;
  margin-bottom:20px; }
.blog-index-sub { font-size:clamp(16px,1.6vw,19px); color:var(--t2);
  line-height:1.65; max-width:520px; margin:0 auto; }

.blog-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(320px,1fr));
  gap:24px; padding:clamp(48px,7vh,96px) 0; }
.post-card { background:var(--surface); backdrop-filter:blur(20px);
  border:1px solid var(--b1); border-radius:20px; padding:32px;
  display:flex; flex-direction:column; gap:16px; transition:border-color .3s,
  transform .3s var(--ease); text-decoration:none; }
.post-card:hover { border-color:var(--red-border); transform:translateY(-4px); }
.post-card-tag { font-family:var(--mono); font-size:9px; text-transform:uppercase;
  letter-spacing:.2em; color:var(--red); }
.post-card-title { font-family:var(--serif); font-size:clamp(18px,2vw,22px);
  font-weight:800; color:var(--t1); line-height:1.2; letter-spacing:-.01em; }
.post-card-excerpt { font-size:14px; color:var(--t2); line-height:1.65;
  flex:1; }
.post-card-footer { display:flex; align-items:center; justify-content:space-between;
  padding-top:16px; border-top:1px solid var(--b1); }
.post-card-author { font-size:12px; color:var(--t3); }
.post-card-arrow { font-size:14px; color:var(--red); }

/* ---- RESPONSIVE ---- */
@media(max-width:640px){
  .stat-row { grid-template-columns:1fr 1fr; }
  .blog-grid { grid-template-columns:1fr; }
  .author-bio { flex-direction:column; }
  .blog-footer-inner { flex-direction:column; text-align:center; }
  .footer-links { justify-content:center; }
  .nav-links-blog { display:none; }
}
@media(max-width:480px){
  .stat-row { grid-template-columns:1fr; }
  .post-card { padding:22px; }
  .table-wrap { font-size:13px; }
  thead th, tbody td { padding:10px 12px; }
}
