/* ============================================================
   NGSpurs Blog — blog.css
   Brand: #00AEEF (blue) · #8DC63F (green) · #0D1F35 (navy)
   Theme: Editorial Light — professional, modern, readable
   Fonts: Syne (headings) + DM Sans (body)
   ============================================================ */

/* ── Variables ── */
:root {
  --bg-base:       #F4F7FB;
  --bg-white:      #FFFFFF;
  --bg-surface:    #EEF3FA;
  --bg-deep:       #0D1F35;

  --border:        rgba(0, 174, 239, 0.13);
  --border-mid:    rgba(0, 174, 239, 0.25);
  --border-card:   rgba(13, 31, 53, 0.08);

  --text-primary:  #0D1F35;
  --text-body:     #2C4158;
  --text-muted:    #6B88A2;
  --text-white:    #FFFFFF;

  /* Brand */
  --blue:          #00AEEF;
  --blue-dk:       #0090C8;
  --blue-lt:       rgba(0, 174, 239, 0.08);
  --green:         #8DC63F;
  --green-dk:      #6FA832;
  --green-lt:      rgba(141, 198, 63, 0.08);
  --navy:          #0D1F35;
  --navy-lt:       rgba(13, 31, 53, 0.06);
  --lime:          #C8E04A;

  /* Shadows */
  --sh-xs:   0 1px 4px rgba(13,31,53,0.06);
  --sh-sm:   0 2px 12px rgba(13,31,53,0.08);
  --sh-md:   0 6px 28px rgba(13,31,53,0.10);
  --sh-lg:   0 16px 56px rgba(13,31,53,0.12);
  --sh-blue: 0 6px 28px rgba(0,174,239,0.20);

  /* Radii */
  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  20px;
  --r-xl:  28px;

  /* Fonts */
  --f-head: 'Syne', sans-serif;
  --f-body: 'DM Sans', sans-serif;

  /* Layout */
  --nav-h:   72px;
  --max-w:   1180px;
  --blog-w:  800px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--f-body);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}
body.post-page { background: var(--bg-white); }
img  { max-width: 100%; display: block; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-surface); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 3px; }

/* ── Utility ── */
.hidden { display: none !important; }
.section-eyebrow {
  font-size: 0.73rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--blue);
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 1.5rem;
}
.blog-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.text-blue  { color: var(--blue); }
.text-green { color: var(--green); }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dk));
  color: #fff; font-family: var(--f-body); font-size: 0.92rem;
  font-weight: 600; padding: 11px 24px; border-radius: var(--r-md);
  border: none; cursor: pointer;
  box-shadow: var(--sh-blue); transition: all 0.25s;
  text-decoration: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(0,174,239,0.32);
}
.btn-full { width: 100%; justify-content: center; }

/* ============================================================
   READING PROGRESS BAR
   ============================================================ */
.reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--green));
  z-index: 2000;
  transition: width 0.1s linear;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}
.navbar.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 2px 18px rgba(13,31,53,0.08);
}
.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.logo-img { height: 34px; width: auto; }
.blog-pill {
  font-family: var(--f-head);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--blue), var(--blue-dk));
  color: #fff; padding: 3px 9px; border-radius: 100px;
}
.nav-links {
  display: flex; align-items: center; gap: 2px;
}
.nav-sep {
  width: 1px; height: 20px; background: var(--border);
  margin: 0 6px;
}
.nav-link {
  font-size: 0.88rem; font-weight: 400; color: var(--text-muted);
  padding: 6px 12px; border-radius: var(--r-sm);
  transition: color 0.2s, background 0.2s;
  display: flex; align-items: center; gap: 5px;
}
.nav-link i { font-size: 0.78rem; }
.nav-link:hover, .nav-link.active {
  color: var(--blue); background: var(--blue-lt);
}
.nav-cta {
  font-size: 0.86rem; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-dk));
  padding: 8px 20px; border-radius: var(--r-md);
  transition: all 0.25s; box-shadow: 0 2px 10px rgba(0,174,239,0.22);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: var(--sh-blue); }
.nav-toggle {
  display: none; flex-direction: column;
  justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 23px; height: 2px;
  background: var(--text-primary); border-radius: 2px; transition: all 0.3s;
}

/* ============================================================
   BLOG HERO (Landing Page)
   ============================================================ */
.blog-hero {
  position: relative;
  padding: calc(var(--nav-h) + 70px) 0 64px;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

/* Geometric mesh decoration */
.hero-bg-mesh {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.mesh-dot {
  position: absolute; border-radius: 50%;
  background: var(--blue); opacity: 0.07; filter: blur(60px);
}
.md-1 { width: 380px; height: 380px; top: -100px; right: -60px; }
.md-2 { width: 280px; height: 280px; bottom: -60px; left: -40px; background: var(--green); }
.md-3 { width: 180px; height: 180px; top: 40%; left: 35%; }
.mesh-line {
  position: absolute; height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0.12; width: 100%;
}
.ml-1 { top: 35%; }
.ml-2 { top: 65%; background: linear-gradient(90deg, transparent, var(--green), transparent); }

.hero-container {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  position: relative; z-index: 1;
}
.hero-label {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue-lt); border: 1px solid var(--border-mid);
  padding: 5px 14px; border-radius: 100px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em;
  color: var(--blue); margin-bottom: 1.5rem;
  animation: fadeUp 0.5s ease both;
}
.hero-label-icon { font-size: 0.8rem; }

.hero-title {
  font-family: var(--f-head);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800; line-height: 1.1; color: var(--text-primary);
  margin-bottom: 1.2rem;
  animation: fadeUp 0.6s ease 0.08s both;
}
.hero-title-accent { color: var(--blue); }

.hero-desc {
  font-size: 1.08rem; color: var(--text-muted);
  max-width: 580px; margin-bottom: 2.2rem; line-height: 1.7;
  animation: fadeUp 0.6s ease 0.15s both;
}

/* Search */
.hero-search {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-white);
  border: 1.5px solid var(--border-mid);
  border-radius: var(--r-xl);
  padding: 12px 20px;
  max-width: 480px;
  box-shadow: var(--sh-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-bottom: 1.8rem;
  animation: fadeUp 0.6s ease 0.22s both;
}
.hero-search:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0,174,239,0.10), var(--sh-sm);
}
.search-icon { color: var(--text-muted); font-size: 0.9rem; flex-shrink: 0; }
.hero-search input {
  flex: 1; border: none; outline: none; background: transparent;
  font-family: var(--f-body); font-size: 0.92rem; color: var(--text-primary);
}
.hero-search input::placeholder { color: var(--text-muted); }
.search-hint {
  font-size: 0.68rem; color: var(--text-muted);
  background: var(--bg-surface); border: 1px solid var(--border-card);
  padding: 2px 6px; border-radius: 4px; white-space: nowrap;
}

/* Filter Tags */
.filter-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  animation: fadeUp 0.6s ease 0.29s both;
}
.tag-btn {
  font-family: var(--f-body); font-size: 0.82rem; font-weight: 500;
  padding: 7px 16px; border-radius: 100px;
  border: 1.5px solid var(--border-mid); background: transparent;
  color: var(--text-muted); cursor: pointer;
  transition: all 0.2s;
}
.tag-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-lt); }
.tag-btn.active {
  background: var(--blue); border-color: var(--blue);
  color: #fff; box-shadow: var(--sh-blue);
}

/* ============================================================
   FEATURED SECTION
   ============================================================ */
.featured-section { padding: 60px 0 0; }

.featured-card {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--bg-white);
  border: 1.5px solid var(--border-card);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-md);
  transition: all 0.35s;
  opacity: 0; transform: translateY(30px);
}
.featured-card.revealed { opacity: 1; transform: translateY(0); }
.featured-card:hover { box-shadow: var(--sh-lg); transform: translateY(-4px); }

.featured-img-wrap {
  position: relative; display: block;
  min-height: 380px; overflow: hidden;
}
.featured-img {
  width: 100%; height: 100%;
  position: relative; overflow: hidden;
  transition: transform 0.5s ease;
}
.featured-img-wrap:hover .featured-img { transform: scale(1.03); }
.cover-svg {
  width: 100%; height: 100%; position: absolute; inset: 0;
}
.featured-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, transparent 60%, rgba(0,0,0,0.25));
}
.featured-read-btn {
  position: absolute; bottom: 20px; right: 20px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem;
  transform: scale(0.85); opacity: 0;
  transition: all 0.3s;
}
.featured-img-wrap:hover .featured-read-btn {
  transform: scale(1); opacity: 1;
}

.featured-content {
  padding: 44px 40px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
}
.post-meta-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
}
.post-cat {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 3px 10px; border-radius: 100px;
}
.cat-ai   { background: rgba(0,174,239,0.10); color: #0090C8; border: 1px solid rgba(0,174,239,0.25); }
.cat-ehs  { background: rgba(141,198,63,0.10); color: #5A8A20; border: 1px solid rgba(141,198,63,0.25); }
.cat-edge { background: rgba(141,198,63,0.10); color: #5A8A20; border: 1px solid rgba(141,198,63,0.25); }
.cat-ent  { background: rgba(0,174,239,0.08); color: #0077B6; border: 1px solid rgba(0,174,239,0.20); }

.post-date, .post-read {
  font-size: 0.78rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 5px;
}

.featured-title {
  font-family: var(--f-head); font-size: 1.7rem; font-weight: 800;
  line-height: 1.22; color: var(--text-primary);
}
.featured-title a { color: inherit; transition: color 0.2s; }
.featured-title a:hover { color: var(--blue); }

.featured-excerpt {
  font-size: 0.97rem; color: var(--text-body); line-height: 1.7;
}

.featured-footer {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.author-chip {
  display: flex; align-items: center; gap: 10px;
}
.author-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-head); font-size: 0.78rem; font-weight: 800;
  color: #fff; flex-shrink: 0;
}
.av-blue  { background: linear-gradient(135deg, #00AEEF, #0070A0); }
.av-green { background: linear-gradient(135deg, #8DC63F, #5A8A20); }
.author-info { display: flex; flex-direction: column; }
.author-name { font-size: 0.84rem; font-weight: 600; color: var(--text-primary); }
.author-role { font-size: 0.74rem; color: var(--text-muted); }

.author-chip-sm { gap: 8px; }
.author-chip-sm .author-avatar { width: 30px; height: 30px; font-size: 0.68rem; }
.author-chip-sm .author-name { font-size: 0.78rem; }

.read-more-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.88rem; font-weight: 600; color: var(--blue);
  padding: 9px 18px; border: 1.5px solid var(--blue);
  border-radius: var(--r-md); transition: all 0.25s;
}
.read-more-btn:hover {
  background: var(--blue); color: #fff; box-shadow: var(--sh-blue);
  transform: translateX(2px);
}
.read-more-btn i { transition: transform 0.25s; }
.read-more-btn:hover i { transform: translateX(3px); }

/* ============================================================
   POSTS SECTION / GRID
   ============================================================ */
.posts-section { padding: 52px 0 80px; }
.posts-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px;
}
.posts-header .section-eyebrow { margin-bottom: 0; }
.posts-count {
  font-size: 0.82rem; color: var(--text-muted);
  background: var(--bg-surface); border: 1px solid var(--border);
  padding: 4px 12px; border-radius: 100px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

/* Post Card */
.post-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border-card);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all 0.32s ease;
  box-shadow: var(--sh-xs);
  opacity: 0; transform: translateY(28px);
  display: flex; flex-direction: column;
}
.post-card.revealed { opacity: 1; transform: translateY(0); }
.post-card:hover {
  box-shadow: var(--sh-md);
  transform: translateY(-5px);
  border-color: rgba(0,174,239,0.22);
}

.post-thumb-link { display: block; overflow: hidden; }
.post-thumb {
  height: 200px; position: relative;
  overflow: hidden; transition: transform 0.45s ease;
}
.post-thumb-link:hover .post-thumb { transform: scale(1.04); }
.post-thumb svg { width: 100%; height: 100%; }
.thumb-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.25));
}

.post-body {
  padding: 24px 24px 20px;
  display: flex; flex-direction: column; gap: 10px; flex: 1;
}
.post-title {
  font-family: var(--f-head); font-size: 1.1rem; font-weight: 700;
  line-height: 1.3; color: var(--text-primary);
}
.post-title a { color: inherit; transition: color 0.2s; }
.post-title a:hover { color: var(--blue); }
.post-excerpt {
  font-size: 0.88rem; color: var(--text-body); line-height: 1.65;
  flex: 1;
}
.post-footer {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 8px; padding-top: 14px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.post-footer-right {
  display: flex; align-items: center; gap: 8px;
}
.post-date-sm, .post-read-sm {
  font-size: 0.74rem; color: var(--text-muted);
}
.card-read-btn {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--blue-lt); border: 1px solid var(--border-mid);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); font-size: 0.8rem;
  transition: all 0.25s;
}
.card-read-btn:hover {
  background: var(--blue); color: #fff;
  border-color: var(--blue); box-shadow: var(--sh-blue);
  transform: scale(1.1);
}

/* Empty State */
.empty-state {
  text-align: center; padding: 80px 24px;
  color: var(--text-muted);
}
.empty-state i { font-size: 2.5rem; margin-bottom: 12px; opacity: 0.4; display: block; }
.empty-state p { font-size: 1rem; }
.empty-state button {
  background: none; border: none; color: var(--blue); cursor: pointer;
  font-weight: 600; text-decoration: underline; font-size: inherit;
}

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter-section { padding: 0 0 80px; }
.newsletter-card {
  background: var(--navy);
  border-radius: var(--r-xl);
  padding: 48px 40px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  position: relative; overflow: hidden;
  box-shadow: var(--sh-lg);
}
.newsletter-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(0,174,239,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.nl-icon {
  font-size: 2.4rem; color: var(--blue); opacity: 0.8;
  position: relative; z-index: 1;
}
.nl-text { position: relative; z-index: 1; }
.nl-text h2 {
  font-family: var(--f-head); font-size: 1.5rem; font-weight: 800;
  color: var(--text-white); margin-bottom: 6px;
}
.nl-text p { font-size: 0.92rem; color: rgba(255,255,255,0.6); }
.nl-form {
  display: flex; gap: 10px; align-items: center;
  position: relative; z-index: 1;
  min-width: 320px;
}
.nl-form input {
  flex: 1; font-family: var(--f-body); font-size: 0.9rem;
  padding: 11px 16px; border-radius: var(--r-md);
  border: 1.5px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: var(--text-white);
  outline: none; transition: border-color 0.2s;
}
.nl-form input::placeholder { color: rgba(255,255,255,0.4); }
.nl-form input:focus { border-color: var(--blue); }

/* ============================================================
   FOOTER
   ============================================================ */
.blog-footer {
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  padding-top: 56px;
}
.footer-container {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 24px 40px;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px;
}
.footer-logo { height: 30px; width: auto; margin-bottom: 14px; }
.footer-brand p { font-size: 0.84rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 18px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 34px; height: 34px; background: var(--bg-surface);
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 0.88rem; transition: all 0.25s;
}
.footer-social a:hover {
  background: var(--blue-lt); border-color: var(--blue); color: var(--blue);
}
.footer-col h4 {
  font-family: var(--f-head); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-primary); margin-bottom: 14px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col li a { font-size: 0.84rem; color: var(--text-muted); transition: color 0.2s; }
.footer-col li a:hover { color: var(--blue); }
.footer-bottom {
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  font-size: 0.76rem; color: var(--text-muted);
}
.footer-bottom a:not(.footer-blog-home) { color: var(--text-muted); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--blue); }
.footer-blog-home {
  display: flex; align-items: center; gap: 6px;
  font-weight: 600; color: var(--blue); transition: gap 0.2s;
}
.footer-blog-home:hover { gap: 8px; }

/* WhatsApp */
.wa-float {
  position: fixed; bottom: 26px; right: 26px;
  width: 52px; height: 52px; background: #25D366;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.45rem; color: #fff;
  box-shadow: 0 4px 18px rgba(37,211,102,0.40);
  z-index: 999; transition: all 0.3s;
  animation: waFloat 3s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.55); }
@keyframes waFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}

/* ============================================================
   POST HERO (Detail Page)
   ============================================================ */
.post-hero {
  position: relative;
  margin-top: var(--nav-h);
  height: 520px;
  overflow: hidden;
}
.post-hero-img {
  width: 100%; height: 100%;
  position: relative;
}
.post-cover-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.post-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.60) 100%);
}
.post-hero-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 40px 0;
  z-index: 2;
}
.post-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.78rem; color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
}
.post-breadcrumb a { color: rgba(255,255,255,0.7); transition: color 0.2s; }
.post-breadcrumb a:hover { color: #fff; }
.post-breadcrumb i { font-size: 0.68rem; }
.post-cats { display: flex; gap: 8px; margin-bottom: 16px; }
/* Override cat colors for white text on dark hero */
.post-hero .cat-ai,
.post-hero .cat-ehs,
.post-hero .cat-edge,
.post-hero .cat-ent {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.2);
}
.post-hero-title {
  font-family: var(--f-head); font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 800; line-height: 1.18; color: #fff;
  max-width: 820px; margin-bottom: 24px;
}
.post-hero-title .text-blue  { color: #5BD8FF; }
.post-hero-title .text-green { color: #B8F06A; }
.post-hero-meta {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.post-hero-meta .author-avatar { width: 40px; height: 40px; }
.post-hero-meta .author-name { color: rgba(255,255,255,0.9); }
.post-hero-meta .author-role { color: rgba(255,255,255,0.6); }
.post-hero-meta-right {
  display: flex; gap: 20px;
  font-size: 0.83rem; color: rgba(255,255,255,0.65);
}
.post-hero-meta-right span { display: flex; align-items: center; gap: 6px; }

/* ============================================================
   POST MAIN (Article Layout)
   ============================================================ */
.post-main { padding: 60px 0 80px; }
.post-layout {
  display: grid; grid-template-columns: 1fr 320px; gap: 56px;
  align-items: start;
}
.post-article {
  font-size: 1.05rem; color: var(--text-body); line-height: 1.8;
  min-width: 0;
}
.post-article h2 {
  font-family: var(--f-head); font-size: 1.65rem; font-weight: 800;
  color: var(--text-primary); margin: 2.8rem 0 1rem;
  padding-left: 16px;
  border-left: 4px solid var(--blue);
  line-height: 1.25;
}
.post-article h3 {
  font-family: var(--f-head); font-size: 1.2rem; font-weight: 700;
  color: var(--text-primary); margin: 2rem 0 0.75rem;
}
.post-article p { margin-bottom: 1.2rem; }
.post-article strong { color: var(--text-primary); font-weight: 600; }
.post-article a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.post-article a:hover { color: var(--blue-dk); }
.post-article em { color: var(--text-muted); font-style: italic; }

/* Lead paragraph */
.post-lead {
  font-size: 1.18rem; color: var(--text-primary);
  font-weight: 400; line-height: 1.75;
  padding: 0 0 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

/* Callouts */
.callout {
  display: flex; gap: 16px;
  padding: 20px 24px; border-radius: var(--r-md);
  margin: 2rem 0; border: 1.5px solid;
}
.callout-blue { background: rgba(0,174,239,0.06); border-color: rgba(0,174,239,0.25); }
.callout-green { background: rgba(141,198,63,0.06); border-color: rgba(141,198,63,0.25); }
.callout-icon {
  font-size: 1.2rem; flex-shrink: 0; margin-top: 2px;
}
.callout-blue  .callout-icon { color: var(--blue); }
.callout-green .callout-icon { color: var(--green-dk); }
.callout div:last-child { font-size: 0.95rem; line-height: 1.7; color: var(--text-body); }
.callout strong { color: var(--text-primary); }

/* Stat highlights */
.stat-highlight-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin: 2rem 0;
}
.stat-h-card {
  background: var(--bg-surface); border: 1.5px solid var(--border);
  border-radius: var(--r-md); padding: 20px 18px;
  display: flex; flex-direction: column; gap: 6px;
  text-align: center; transition: all 0.25s;
}
.stat-h-card:hover {
  border-color: var(--blue); background: var(--bg-white);
  box-shadow: var(--sh-sm);
}
.stat-h-num {
  font-family: var(--f-head); font-size: 1.8rem; font-weight: 800; line-height: 1;
}
.stat-h-label { font-size: 0.78rem; color: var(--text-muted); line-height: 1.45; }

/* Numbered steps */
.numbered-steps {
  display: flex; flex-direction: column; gap: 16px;
  margin: 1.5rem 0 2rem;
}
.n-step {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--bg-surface); border: 1.5px solid var(--border);
  border-radius: var(--r-md); padding: 20px;
  transition: all 0.25s;
}
.n-step:hover {
  border-color: var(--blue); background: var(--bg-white); box-shadow: var(--sh-sm);
}
.n-num {
  font-family: var(--f-head); font-size: 1.1rem; font-weight: 800;
  color: var(--blue); flex-shrink: 0; line-height: 1.4;
  min-width: 28px;
}
.n-step strong { display: block; margin-bottom: 5px; color: var(--text-primary); font-size: 0.97rem; }
.n-step p { font-size: 0.88rem; color: var(--text-body); line-height: 1.65; margin: 0; }

/* Styled list */
.styled-list {
  list-style: none; margin: 1rem 0 1.5rem;
  display: flex; flex-direction: column; gap: 10px;
}
.styled-list li {
  padding: 10px 16px;
  background: var(--bg-surface); border-left: 3px solid var(--blue);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 0.93rem; color: var(--text-body); line-height: 1.55;
}
.styled-list li strong { color: var(--text-primary); }

/* Tags */
.post-tags {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 2.5rem 0;
}
.ptag {
  font-size: 0.78rem; font-weight: 500; color: var(--blue);
  background: var(--blue-lt); border: 1px solid var(--border-mid);
  padding: 5px 12px; border-radius: 100px;
  transition: all 0.2s; cursor: default;
}
.ptag:hover { background: var(--blue); color: #fff; }

/* Share */
.post-share {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 20px 0; border-top: 1px solid var(--border);
  font-size: 0.85rem; color: var(--text-muted);
}
.share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.84rem; font-weight: 600;
  padding: 8px 16px; border-radius: var(--r-md);
  border: 1.5px solid var(--border-mid); color: var(--text-muted);
  transition: all 0.25s;
}
.share-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-lt); }

/* ============================================================
   SIDEBAR
   ============================================================ */
.post-sidebar { position: relative; }
.sidebar-sticky {
  position: sticky; top: calc(var(--nav-h) + 24px);
  display: flex; flex-direction: column; gap: 18px;
}
.sidebar-card {
  background: var(--bg-white); border: 1.5px solid var(--border-card);
  border-radius: var(--r-lg); padding: 22px;
  box-shadow: var(--sh-xs);
}
.sidebar-card h4 {
  font-family: var(--f-head); font-size: 0.9rem; font-weight: 700;
  color: var(--text-primary); margin-bottom: 14px;
  display: flex; align-items: center; gap: 7px;
}
.sidebar-card h4 i { color: var(--blue); }

/* Author card */
.author-card-full {
  text-align: center;
}
.author-card-full .author-avatar {
  margin: 0 auto 12px;
}
.av-lg { width: 56px !important; height: 56px !important; font-size: 1rem !important; }
.author-card-full h4 { justify-content: center; margin-bottom: 6px; }
.author-bio { font-size: 0.83rem; color: var(--text-muted); line-height: 1.6; }

/* TOC */
.toc-list {
  display: flex; flex-direction: column; gap: 2px;
}
.toc-list li a {
  display: block; font-size: 0.84rem; color: var(--text-muted);
  padding: 5px 8px; border-radius: var(--r-sm); border-left: 2px solid transparent;
  transition: all 0.2s; line-height: 1.4;
}
.toc-list li a:hover, .toc-list li a.toc-active {
  color: var(--blue); background: var(--blue-lt);
  border-left-color: var(--blue);
}
.toc-sub a { padding-left: 20px !important; font-size: 0.8rem !important; }

/* Sidebar CTA */
.sidebar-cta {
  background: var(--navy);
  border-color: transparent;
}
.sidebar-cta h4 { color: #fff; }
.sidebar-cta p { font-size: 0.83rem; color: rgba(255,255,255,0.6); margin-bottom: 14px; }

/* ============================================================
   POST NAVIGATION (prev/next/home)
   ============================================================ */
.post-navigation {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}
.post-nav-grid {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 20px; align-items: center;
}
.post-nav-prev, .post-nav-next {
  display: flex; flex-direction: column; gap: 5px;
  padding: 16px 20px;
  background: var(--bg-white); border: 1.5px solid var(--border-card);
  border-radius: var(--r-md); transition: all 0.25s;
  cursor: pointer;
}
.post-nav-prev { align-items: flex-start; }
.post-nav-next { align-items: flex-end; }
.post-nav-prev:hover, .post-nav-next:hover {
  border-color: var(--blue); box-shadow: var(--sh-sm);
  transform: translateX(0) scale(1.01);
}
.post-nav-empty {
  opacity: 0.4; cursor: default; pointer-events: none;
}
.post-nav-empty:hover { transform: none; box-shadow: none; border-color: var(--border-card); }
.nav-dir {
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--blue);
  display: flex; align-items: center; gap: 5px;
}
.nav-title { font-size: 0.88rem; font-weight: 600; color: var(--text-primary); line-height: 1.35; }
.post-nav-home {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 16px 22px;
  background: var(--blue); color: #fff;
  border-radius: var(--r-md); transition: all 0.25s;
  font-size: 0.82rem; font-weight: 600;
  box-shadow: var(--sh-blue);
  white-space: nowrap;
}
.post-nav-home i { font-size: 1.1rem; }
.post-nav-home:hover { background: var(--blue-dk); transform: scale(1.04); }

/* ============================================================
   RELATED ARTICLES
   ============================================================ */
.related-section { padding: 56px 0; }
.related-section .section-eyebrow { margin-bottom: 24px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.related-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--bg-white); border: 1.5px solid var(--border-card);
  border-radius: var(--r-lg); padding: 18px;
  transition: all 0.28s; text-decoration: none; color: inherit;
}
.related-card:hover { box-shadow: var(--sh-md); border-color: rgba(0,174,239,0.22); transform: translateY(-3px); }
.related-thumb {
  width: 72px; height: 72px; border-radius: var(--r-md);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: rgba(255,255,255,0.7);
}
.related-body { display: flex; flex-direction: column; gap: 6px; }
.related-body h4 {
  font-family: var(--f-head); font-size: 0.92rem; font-weight: 700;
  color: var(--text-primary); line-height: 1.35;
  transition: color 0.2s;
}
.related-card:hover .related-body h4 { color: var(--blue); }
.related-read { font-size: 0.78rem; color: var(--blue); font-weight: 600; }

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.post-card, .featured-card {
  transition: opacity 0.55s ease, transform 0.55s ease, box-shadow 0.32s ease, border-color 0.32s ease;
}
/* stagger via JS */

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { display: none; } /* hide sidebar on tablet/mobile for clean reading */
  .featured-card { grid-template-columns: 1fr; }
  .featured-img-wrap { min-height: 280px; }
  .newsletter-card { grid-template-columns: 1fr; text-align: center; }
  .nl-form { min-width: 0; width: 100%; max-width: 480px; margin: 0 auto; }
}
@media (max-width: 768px) {
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px; gap: 4px;
    box-shadow: 0 8px 24px rgba(13,31,53,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-sep { display: none; }
  .posts-grid { grid-template-columns: 1fr; }
  .stat-highlight-grid { grid-template-columns: 1fr 1fr; }
  .post-hero { height: 400px; }
  .post-hero-title { font-size: 1.5rem; }
  .post-nav-grid { grid-template-columns: 1fr; }
  .post-nav-prev, .post-nav-next { align-items: flex-start; }
  .post-nav-home { flex-direction: row; width: 100%; justify-content: center; }
  .footer-container { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .hero-search { max-width: 100%; }
  .featured-content { padding: 28px 24px; }
}
@media (max-width: 480px) {
  .stat-highlight-grid { grid-template-columns: 1fr; }
  .post-hero { height: 320px; }
  .nl-form { flex-direction: column; }
  .nl-form input, .nl-form button { width: 100%; }
  .filter-tags { gap: 6px; }
}
