/* ==========================================================
   TOASTLYTICS — blog.css
   Styles for Blog index page + individual post pages.
   Sections:
   1. Fonts & Tokens
   2. Reset & Base
   3. Animations & Utilities
   4. NAV
   5. MOBILE NAV
   6. BLOG INDEX — Hero + Grid
   7. BLOG INDEX — Post Cards
   8. BLOG INDEX — Sidebar & Featured
   9. BLOG POST — Layout
   10. BLOG POST — Article Typography
   11. BLOG POST — Sidebar (TOC + related)
   12. FOOTER
   13. RESPONSIVE
   ========================================================== */

/* ==========================================================
   1. FONTS & TOKENS
   ========================================================== */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,700;0,9..144,900;1,9..144,400;1,9..144,700;1,9..144,900&family=DM+Mono:wght@300;400;500&family=DM+Sans:wght@300;400;500;600&display=swap");

:root {
  --bg: #0c0a08;
  --surface: #131109;
  --surface2: #1a1710;
  --surface3: #252219;
  --border: rgba(245, 200, 66, 0.08);
  --border2: rgba(245, 200, 66, 0.16);
  --accent: #f5c842;
  --accent2: #ff8c42;
  --accent3: #42c9a0;
  --red: #ff5c5c;
  --text: #f0e8d8;
  --text2: #9a8f78;
  --text3: #5a5240;
  --ff: "Fraunces", serif;
  --fm: "DM Mono", monospace;
  --fs: "DM Sans", sans-serif;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
}

/* ==========================================================
   2. RESET & BASE
   ========================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--fs);
  overflow-x: hidden;
  position: relative;
  width: 100%;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  opacity: 0.5;
}

::-webkit-scrollbar {
  width: 3px;
}
::-webkit-scrollbar-track {
  background: var(--surface);
}
::-webkit-scrollbar-thumb {
  background: var(--surface3);
  border-radius: 2px;
}

/* ==========================================================
   3. ANIMATIONS & UTILITIES
   ========================================================== */
@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes b-rise1 {
  0%,
  100% {
    opacity: 0;
    transform: translateY(0);
  }
  20% {
    opacity: 0.85;
  }
  80% {
    opacity: 0.15;
    transform: translateY(-12px);
  }
}
@keyframes b-rise3 {
  0%,
  100% {
    opacity: 0;
    transform: translateY(0);
  }
  20% {
    opacity: 0.75;
  }
  80% {
    opacity: 0.15;
    transform: translateY(-14px);
  }
}
@keyframes chart-glow {
  0%,
  100% {
    filter: drop-shadow(0 0 3px rgba(0, 229, 160, 0.5));
  }
  50% {
    filter: drop-shadow(0 0 9px rgba(0, 229, 160, 0.9));
  }
}
@keyframes flute-glow {
  0%,
  100% {
    filter: drop-shadow(0 0 2px rgba(245, 200, 66, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 7px rgba(245, 200, 66, 0.7));
  }
}

.flute-b1 {
  animation: b-rise1 3s ease-in-out infinite;
}
.flute-b3 {
  animation: b-rise3 2.8s ease-in-out infinite 1.2s;
}
.flute-chart {
  animation: chart-glow 4s ease-in-out infinite;
}
.flute-body {
  animation: flute-glow 5s ease-in-out infinite;
}

.logo-shimmer {
  background: linear-gradient(135deg, #f5c842, #ff8c42, #f5c842);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}
.logo-serif {
  color: var(--text);
  font-style: italic;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.page-enter {
  animation: fadeUp 0.45s ease forwards;
}

.btn-primary {
  padding: 12px 28px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #0c0a08;
  font-family: var(--ff);
  font-weight: 900;
  font-size: 14px;
  font-style: italic;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(245, 200, 66, 0.28);
}

/* ==========================================================
   4. NAV
   ========================================================== */
nav#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 clamp(20px, 5vw, 60px);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(12, 10, 8, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo-text {
  font-family: var(--ff);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.5px;
  line-height: 1;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  color: var(--text2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  transition: all 0.2s;
}
.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}
.nav-link.active {
  color: var(--accent);
}
.nav-cta {
  padding: 9px 20px;
  border-radius: 10px;
  margin-left: 4px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #0c0a08;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  font-family: var(--ff);
  font-style: italic;
  transition: all 0.2s;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(245, 200, 66, 0.3);
}
.nav-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  font-size: 22px;
  padding: 4px;
  line-height: 1;
}

/* ==========================================================
   5. MOBILE NAV
   ========================================================== */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(12, 10, 8, 0.98);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.mobile-nav.open {
  display: flex;
  animation: fadeUp 0.25s ease;
}
.mobile-nav-link {
  color: var(--text);
  text-decoration: none;
  font-family: var(--ff);
  font-size: 30px;
  font-weight: 900;
  font-style: italic;
  transition: color 0.2s;
}
.mobile-nav-link:hover {
  color: var(--accent);
}
.mobile-nav-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--text3);
  font-size: 28px;
  cursor: pointer;
}

/* ==========================================================
   6. BLOG INDEX — Hero + Header
   ========================================================== */
.blog-hero {
  padding: 120px clamp(20px, 5vw, 60px) 64px;
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(
    160deg,
    rgba(245, 200, 66, 0.04) 0%,
    var(--bg) 65%
  );
}
.blog-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
}

.blog-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
  border: 1px solid var(--border2);
  background: rgba(245, 200, 66, 0.06);
  font-family: var(--fm);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.blog-hero-tag-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent3);
}

.blog-hero-title {
  font-family: var(--ff);
  font-weight: 900;
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -1.5px;
  line-height: 1.08;
  margin-bottom: 12px;
}
.blog-hero-title em {
  font-style: italic;
  color: var(--accent);
}
.blog-hero-sub {
  font-size: 16px;
  color: var(--text2);
  max-width: 440px;
  line-height: 1.7;
}

/* Category filter chips */
.blog-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  .blog-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 4px 20px 12px;
    margin: 8px -20px 0;
    width: calc(100% + 40px);
    max-width: 100vw;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
  }
  .blog-filters::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }
}
.blog-filter-btn {
  padding: 7px 16px;
  border-radius: 100px;
  cursor: pointer;
  font-family: var(--fm);
  font-size: 11px;
  letter-spacing: 1px;
  border: 1px solid var(--border2);
  background: transparent;
  color: var(--text2);
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.blog-filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(245, 200, 66, 0.06);
}
.blog-filter-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(245, 200, 66, 0.1);
}

/* ==========================================================
   7. BLOG INDEX — Post Cards
   ========================================================== */
.blog-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px clamp(20px, 5vw, 60px) 100px;
  position: relative;
  z-index: 1;
}

/* Featured post — spans full width */
.blog-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--r-xl);
  border: 1px solid var(--border2);
  overflow: hidden;
  margin-bottom: 48px;
  background: var(--surface);
  transition: box-shadow 0.3s;
}
.blog-featured:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.blog-featured-visual {
  background: linear-gradient(135deg, #1a1710 0%, #222018 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  position: relative;
  overflow: hidden;
}
.blog-featured-visual-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.blog-featured-visual-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6; /* Balanced with the background gradient */
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.blog-featured:hover .blog-featured-visual-img {
  transform: scale(1.05);
}
.blog-featured-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 50%,
    rgba(245, 200, 66, 0.1) 0%,
    transparent 65%
  );
}

.blog-featured-content {
  padding: 44px 44px 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Regular grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Post card */
.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s;
  text-decoration: none;
  color: inherit;
  position: relative;
}
.post-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  border-color: var(--border2);
}
.post-card:hover::before {
  opacity: 1;
}

.post-card-visual {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface2);
  position: relative;
  overflow: hidden;
}
.post-card-visual-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 60%,
    rgba(245, 200, 66, 0.08) 0%,
    transparent 70%
  );
}
.post-card-visual-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5; /* Balanced with surface2 */
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.post-card:hover .post-card-visual-img {
  transform: scale(1.1);
}
.post-card-visual-emoji {
  font-size: 48px;
  position: relative;
  z-index: 1;
}

.post-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Shared post meta */
.post-cat {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
  font-family: var(--fm);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.cat-trading {
  background: rgba(245, 200, 66, 0.1);
  color: var(--accent);
  border: 1px solid var(--border2);
}
.cat-psychology {
  background: rgba(66, 201, 160, 0.1);
  color: var(--accent3);
  border: 1px solid rgba(66, 201, 160, 0.2);
}
.cat-propfirm,
.cat-prop-firm {
  background: rgba(45, 212, 191, 0.1);
  color: #2dd4bf;
  border: 1px solid rgba(45, 212, 191, 0.2);
}
.cat-analytics {
  background: rgba(255, 92, 92, 0.1);
  color: var(--red);
  border: 1px solid rgba(255, 92, 92, 0.2);
}
.cat-guide {
  background: rgba(245, 200, 66, 0.08);
  color: var(--accent);
  border: 1px solid var(--border2);
}
.cat-macro-insights {
  background: rgba(66, 133, 244, 0.1);
  color: #4285f4;
  border: 1px solid rgba(66, 133, 244, 0.2);
}
.cat-market-pulse {
  background: rgba(235, 66, 244, 0.1);
  color: #eb42f4;
  border: 1px solid rgba(235, 66, 244, 0.2);
}
.cat-case-studies {
  background: rgba(160, 66, 255, 0.1);
  color: #a042ff;
  border: 1px solid rgba(160, 66, 255, 0.2);
}
.cat-machine-learning {
  background: rgba(66, 201, 201, 0.1);
  color: #42c9c9;
  border: 1px solid rgba(66, 201, 201, 0.2);
}
.cat-wellness {
  background: rgba(133, 160, 66, 0.1);
  color: #85a042;
  border: 1px solid rgba(133, 160, 66, 0.2);
}
.cat-product-lab {
  background: rgba(160, 160, 160, 0.1);
  color: #a0a0a0;
  border: 1px solid rgba(160, 160, 160, 0.2);
}

.post-hero-cat {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 100px;
  margin: 12px 0 20px;
  font-family: var(--fm);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}


.post-title {
  font-family: var(--ff);
  font-weight: 900;
  font-style: italic;
  font-size: 18px;
  letter-spacing: -0.3px;
  line-height: 1.3;
  margin-bottom: 10px;
  color: var(--text);
}
.post-title-lg {
  font-size: clamp(22px, 3vw, 30px);
}

.post-excerpt {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
  flex: 1;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-family: var(--fm);
  font-size: 10px;
  color: var(--text3);
  letter-spacing: 0.5px;
}
.post-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text3);
}

.post-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-family: var(--ff);
  font-size: 13px;
  font-style: italic;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  transition: gap 0.2s;
}
.post-read-more:hover {
  gap: 10px;
}

/* Newsletter CTA card in grid */
.blog-newsletter-card {
  background: linear-gradient(
    135deg,
    rgba(245, 200, 66, 0.07) 0%,
    var(--surface) 60%
  );
  border: 1px solid var(--border2);
  border-radius: var(--r-lg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.blog-newsletter-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}
.blog-newsletter-title {
  font-family: var(--ff);
  font-weight: 900;
  font-style: italic;
  font-size: 20px;
  margin-bottom: 10px;
}
.blog-newsletter-sub {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.65;
  margin-bottom: 20px;
}
.blog-newsletter-input {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--r-md);
  padding: 11px 14px;
  color: var(--text);
  font-family: var(--fm);
  font-size: 12px;
  outline: none;
  margin-bottom: 10px;
  transition: border-color 0.2s;
}
.blog-newsletter-input:focus {
  border-color: var(--accent);
}
.blog-newsletter-note {
  font-family: var(--fm);
  font-size: 10px;
  color: var(--text3);
  margin-top: 8px;
}

/* ==========================================================
   8. BLOG INDEX — Pagination
   ========================================================== */
.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 60px;
}
.page-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fm);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text2);
  text-decoration: none;
}
.page-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.page-btn.active {
  background: var(--accent);
  color: #0c0a08;
  border-color: var(--accent);
  font-weight: 700;
}

/* ==========================================================
   9. BLOG POST — Layout
   ========================================================== */
.post-hero {
  padding: 80px clamp(20px, 5vw, 60px) 60px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(
    160deg,
    rgba(245, 200, 66, 0.04) 0%,
    var(--bg) 65%
  );
}
.post-hero-visual {
  margin-top: 40px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  height: clamp(240px, 40vw, 420px);
  position: relative;
  background: var(--surface2);
}
.post-hero-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}
.post-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}
.post-hero-crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--fm);
  font-size: 11px;
  color: var(--text3);
  margin-bottom: 20px;
}
.post-hero-crumbs a {
  color: var(--text3);
  text-decoration: none;
  transition: color 0.2s;
}
.post-hero-crumbs a:hover {
  color: var(--accent);
}
.post-hero-crumbs span {
  opacity: 0.4;
}

.post-hero-title {
  font-family: var(--ff);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(28px, 5vw, 48px);
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 20px;
}
.post-hero-title em {
  color: var(--accent);
  font-style: normal;
}

.post-hero-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--fm);
  font-size: 11px;
  color: var(--text3);
  margin-top: 24px;
}
.post-hero-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.post-hero-meta-item span {
  color: var(--text2);
}

.post-body {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 60px;
  max-width: 1060px;
  margin: 0 auto;
  padding: 60px clamp(20px, 5vw, 60px) 100px;
  position: relative;
  z-index: 1;
  align-items: start;
}

/* Post sidebar */
.post-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 96px;
  align-self: start;
}

.post-toc-title {
  font-family: var(--fm);
  font-size: 10px;
  color: var(--text3);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.post-toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.post-toc-list a {
  display: block;
  font-family: var(--fm);
  font-size: 12px;
  color: var(--text3);
  text-decoration: none;
  padding: 6px 10px;
  border-left: 2px solid transparent;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  transition: all 0.2s;
  line-height: 1.4;
}
.post-toc-list a:hover,
.post-toc-list a.active {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(245, 200, 66, 0.05);
}

/* Related posts in sidebar */
.post-related {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
}
.post-related-title {
  font-family: var(--fm);
  font-size: 10px;
  color: var(--text3);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.post-related-item {
  display: block;
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.post-related-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.post-related-item-title {
  font-family: var(--ff);
  font-size: 14px;
  font-weight: 700;
  font-style: italic;
  color: var(--text2);
  line-height: 1.4;
  transition: color 0.2s;
}
.post-related-item:hover .post-related-item-title {
  color: var(--accent);
}
.post-related-item-date {
  font-family: var(--fm);
  font-size: 10px;
  color: var(--text3);
  margin-top: 4px;
}

/* CTA box in sidebar */
.post-cta-box {
  background: linear-gradient(
    135deg,
    rgba(245, 200, 66, 0.06) 0%,
    var(--surface) 60%
  );
  border: 1px solid var(--border2);
  border-radius: var(--r-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.post-cta-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}
.post-cta-box-title {
  font-family: var(--ff);
  font-weight: 900;
  font-style: italic;
  font-size: 16px;
  margin-bottom: 8px;
}
.post-cta-box-sub {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* ==========================================================
   10. BLOG POST — Article Typography
   ========================================================== */
.post-article {
  min-width: 0;
}

.post-article h2 {
  font-family: var(--ff);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(20px, 3vw, 26px);
  letter-spacing: -0.5px;
  margin: 48px 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 96px;
  color: var(--text);
}
.post-article h2:first-child {
  margin-top: 0;
}

.post-article h3 {
  font-family: var(--ff);
  font-weight: 700;
  font-style: italic;
  font-size: 18px;
  color: var(--text);
  margin: 32px 0 12px;
}

.post-article p {
  font-size: 16px;
  color: var(--text2);
  line-height: 1.85;
  margin-bottom: 18px;
}
.post-article p:last-child {
  margin-bottom: 0;
}
.post-article p a {
  color: var(--accent);
  text-decoration: none;
}
.post-article p a:hover {
  text-decoration: underline;
}
.post-article p strong {
  color: var(--text);
  font-weight: 600;
}
.post-article p em {
  color: var(--accent);
  font-style: italic;
}

.post-article ul,
.post-article ol {
  margin: 12px 0 20px 4px;
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
}
.post-article ul li,
.post-article ol li {
  font-size: 16px;
  color: var(--text2);
  line-height: 1.75;
  padding-left: 22px;
  position: relative;
}
.post-article ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.65;
}
.post-article ol {
  counter-reset: ol-counter;
}
.post-article ol li {
  counter-increment: ol-counter;
}
.post-article ol li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 0;
  top: 2px;
  font-family: var(--fm);
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
}

/* Callout / highlight box */
.post-callout {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 18px 22px;
  margin: 24px 0;
}
.post-callout p {
  font-family: var(--fm);
  font-size: 13px;
  color: var(--text2);
  line-height: 1.75;
  margin: 0;
}
.post-callout p strong {
  color: var(--accent);
}

/* Key stat highlight */
.post-stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin: 28px 0;
}
.post-stat-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.post-stat-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.post-stat-val {
  font-family: var(--ff);
  font-size: 32px;
  font-weight: 900;
  font-style: italic;
  color: var(--accent);
  letter-spacing: -1px;
}
.post-stat-label {
  font-family: var(--fm);
  font-size: 10px;
  color: var(--text3);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 6px;
}

/* Separator */
.post-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* Post footer — share + tags */
.post-footer {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.post-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.post-tag {
  padding: 4px 12px;
  border-radius: 100px;
  font-family: var(--fm);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--text3);
  border: 1px solid var(--border);
  background: var(--surface2);
}
.post-share-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.post-share-label {
  font-family: var(--fm);
  font-size: 11px;
  color: var(--text3);
  letter-spacing: 1px;
}
.post-share-btn {
  padding: 8px 16px;
  border-radius: var(--r-sm);
  font-family: var(--fm);
  font-size: 11px;
  border: 1px solid var(--border2);
  background: var(--surface2);
  color: var(--text2);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.post-share-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Author box */
.post-author {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  margin-top: 32px;
}
.post-author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(245, 200, 66, 0.1);
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.post-author-name {
  font-family: var(--ff);
  font-weight: 700;
  font-style: italic;
  font-size: 16px;
  margin-bottom: 4px;
}
.post-author-role {
  font-family: var(--fm);
  font-size: 10px;
  color: var(--text3);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.post-author-bio {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
}

/* ==========================================================
   11. FOOTER
   ========================================================== */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 52px clamp(20px, 5vw, 60px) 32px;
  position: relative;
  z-index: 1;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.footer-brand {
  max-width: 280px;
}
.footer-brand-name {
  font-family: var(--ff);
  font-weight: 900;
  font-size: 22px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 0;
}
.footer-brand-text {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
}
.footer-links {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.footer-col h4 {
  font-family: var(--fm);
  font-size: 10px;
  color: var(--text3);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: var(--text2);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--accent);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-copy {
  font-family: var(--fm);
  font-size: 11px;
  color: var(--text3);
}
.footer-email {
  font-family: var(--fm);
  font-size: 11px;
  color: var(--accent);
  text-decoration: none;
}
.footer-email:hover {
  text-decoration: underline;
}
.footer-tagline {
  font-family: var(--fm);
  font-size: 11px;
  color: var(--text3);
}

/* ==========================================================
   12. RESPONSIVE
   ========================================================== */
@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .blog-featured {
    grid-template-columns: 1fr;
  }
  .blog-featured-visual {
    min-height: 200px;
  }
  .post-body {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .post-sidebar {
    position: static;
  }
  .post-toc {
    position: static;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 20px 24px;
    margin-bottom: 40px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .nav-menu-btn {
    display: block;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .blog-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }
  .footer-top {
    flex-direction: column;
  }
  .footer-links {
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .post-stat-row {
    grid-template-columns: 1fr 1fr;
  }
  .post-author {
    flex-direction: column;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
