/* ================================================================
   PropCashflow.my — Blog Stylesheet
   Aesthetic: Luxury Fintech Editorial
   Dark authority with gold precision. Every pixel signals exclusivity.
   ================================================================ */

/* === Design Tokens === */
/* Theme colors are in theme.css (single source of truth).
   Only blog-specific layout tokens defined here. */
:root {
  --reading-width: 720px;
  --card-radius: 14px;
  --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* === Base Reset === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Outfit', -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* === Geometric Pattern Overlay === */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, var(--overlay-r1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, var(--overlay-r2) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, var(--overlay-r3) 0%, transparent 35%);
  pointer-events: none;
  z-index: 0;
}

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ================================================================
   NAVIGATION
   ================================================================ */
.blog-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: box-shadow 0.3s ease;
}

.blog-nav.scrolled {
  box-shadow: 0 4px 30px var(--nav-shadow);
}

/* Anchor scroll offset for fixed nav */
h2[id] { scroll-margin-top: 5rem; }

.nav-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  color: var(--accent);
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: opacity 0.25s;
}

.nav-logo:hover {
  opacity: 0.85;
}

.nav-logo span {
  color: var(--text-muted);
  font-weight: 400;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  margin-left: 0.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.25s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.3s var(--transition-smooth);
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--accent);
}

.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  background: var(--accent);
  color: var(--bg-primary);
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  transition: all 0.25s;
  border: none;
  cursor: pointer;
  display: inline-block;
}

.nav-cta:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-shadow);
}

/* ================================================================
   BLOG LISTING — HERO
   ================================================================ */
.blog-hero {
  position: relative;
  z-index: 1;
  padding: 10rem 2rem 4rem;
  text-align: center;
}

.blog-hero-inner {
  max-width: 680px;
  margin: 0 auto;
}

.blog-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin-bottom: 1.25rem;
  animation: fadeInUp 0.7s ease both;
}

.blog-hero-eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}

.blog-hero-eyebrow::after {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}

.blog-hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
  animation: fadeInUp 0.7s ease 0.1s both;
}

.blog-hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.blog-hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto;
  animation: fadeInUp 0.7s ease 0.2s both;
}

/* ================================================================
   BLOG LISTING — CARD GRID
   ================================================================ */
.blog-grid-section {
  position: relative;
  z-index: 1;
  padding: 0 2rem 6rem;
}

.blog-grid-inner {
  max-width: 1200px;
  margin: 0 auto;
}

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

/* === Article Card === */
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--card-radius);
  overflow: hidden;
  transition:
    transform 0.45s var(--transition-smooth),
    border-color 0.35s ease,
    box-shadow 0.45s var(--transition-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
}

.blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light), var(--accent));
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 2;
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: var(--border);
  box-shadow:
    0 12px 40px var(--card-shadow),
    0 0 0 1px var(--border);
}

.blog-card:hover::before {
  opacity: 1;
}

/* Card image area */
.blog-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--bg-secondary);
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--transition-smooth);
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.04);
}

/* Gradient overlay on card image */
.blog-card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, var(--bg-card) 0%, transparent 100%);
  pointer-events: none;
}

/* Placeholder when no featured image */
.blog-card-image-placeholder {
  height: 200px;
  background:
    linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 50%, var(--accent-dim) 100%);
  position: relative;
  overflow: hidden;
}

.blog-card-image-placeholder::before {
  content: '';
  position: absolute;
  top: 30%;
  right: -20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  border-radius: 50%;
}

/* Card body */
.blog-card-body {
  padding: 1.75rem 1.75rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.blog-card-meta-divider {
  width: 3px;
  height: 3px;
  background: var(--text-muted);
  border-radius: 50%;
  opacity: 0.5;
}

.blog-card-tag {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

.blog-card-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
  transition: color 0.25s;
}

.blog-card:hover .blog-card-title {
  color: var(--accent-light);
}

.blog-card-excerpt {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  transition: gap 0.3s var(--transition-smooth);
}

.blog-card-read-more::after {
  content: '→';
  transition: transform 0.3s var(--transition-smooth);
}

.blog-card:hover .blog-card-read-more {
  gap: 0.65rem;
}

.blog-card:hover .blog-card-read-more::after {
  transform: translateX(3px);
}

/* ================================================================
   BLOG POST — ARTICLE HEADER
   ================================================================ */
.article-header {
  position: relative;
  z-index: 1;
  padding: 10rem 2rem 3rem;
  text-align: center;
}

.article-header-inner {
  max-width: 800px;
  margin: 0 auto;
}

.article-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  animation: fadeInUp 0.7s ease both;
}

.article-breadcrumb a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.article-breadcrumb a:hover {
  color: var(--accent);
}

.article-breadcrumb-sep {
  opacity: 0.4;
}

.article-tag {
  display: inline-block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.7s ease 0.05s both;
}

.article-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.7s ease 0.1s both;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  animation: fadeInUp 0.7s ease 0.15s both;
}

.article-meta-divider {
  width: 4px;
  height: 4px;
  background: var(--text-muted);
  border-radius: 50%;
  opacity: 0.4;
}

.article-meta-author {
  color: var(--text-secondary);
  font-weight: 500;
}

/* Decorative line below article header */
.article-header-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 3rem auto 0;
  animation: fadeInUp 0.7s ease 0.2s both;
}

/* ================================================================
   BLOG POST — ARTICLE CONTENT (Prose)
   ================================================================ */
.article-content {
  position: relative;
  z-index: 1;
  max-width: var(--reading-width);
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
  animation: fadeInUp 0.7s ease 0.25s both;
}

/* Headings */
.article-content h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.65rem;
  color: var(--accent);
  margin-top: 3rem;
  margin-bottom: 1rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
  position: relative;
  padding-top: 1.5rem;
}

.article-content h2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 1.5px;
  background: var(--accent);
  opacity: 0.4;
}

.article-content h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.article-content h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}

/* Paragraphs */
.article-content p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

.article-content p:first-of-type {
  font-size: 1.15rem;
  color: var(--text-primary);
  line-height: 1.8;
}

/* Links */
.article-content a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-shadow);
  transition: border-color 0.25s, color 0.25s;
}

.article-content a:hover {
  color: var(--accent-light);
  border-bottom-color: var(--accent-light);
}

/* Bold and emphasis */
.article-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.article-content em {
  color: var(--text-primary);
  font-style: italic;
}

/* Lists */
.article-content ul,
.article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 0;
  list-style: none;
}

.article-content ul li,
.article-content ol li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.75;
}

.article-content ul li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.45rem;
  top: 0.65rem;
}

.article-content ol {
  counter-reset: article-list;
}

.article-content ol li {
  counter-increment: article-list;
}

.article-content ol li::before {
  content: counter(article-list) '.';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  font-weight: 500;
  top: 0.15rem;
}

/* Blockquotes */
.article-content blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-dim);
  border-radius: 0 10px 10px 0;
}

.article-content blockquote p {
  color: var(--text-primary);
  font-size: 1rem;
  font-style: italic;
  margin-bottom: 0;
  line-height: 1.7;
}

.article-content blockquote p:last-child {
  margin-bottom: 0;
}

/* Code — inline */
.article-content code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85em;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 0.15em 0.45em;
  border-radius: 5px;
  color: var(--accent-light);
}

/* Code — blocks */
.article-content pre {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow-x: auto;
  position: relative;
}

.article-content pre::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 12px 12px 0 0;
  opacity: 0.5;
}

.article-content pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* Images */
.article-content img {
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  margin: 2rem 0;
  transition: border-color 0.3s;
}

.article-content img:hover {
  border-color: var(--border);
}

/* Horizontal rule */
.article-content hr {
  border: none;
  height: 1px;
  background: var(--border-subtle);
  margin: 3rem 0;
}

/* Tables inside articles */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.9rem;
}

.article-content table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.article-content table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.article-content table tr:hover {
  background: var(--hover-overlay-subtle);
}

/* ================================================================
   RELATED POSTS
   ================================================================ */
.related-posts {
  max-width: var(--reading-width);
  margin: 0 auto;
  padding: 2.5rem 2rem 1rem;
  border-top: 1px solid var(--border-subtle);
}

.related-posts-heading {
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.related-post-card {
  display: flex;
  flex-direction: column;
  padding: 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s, transform 0.35s var(--transition-smooth);
}

.related-post-card:hover {
  border-color: var(--border);
  transform: translateY(-2px);
}

.related-post-tag {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
}

.related-post-title {
  font-family: 'DM Serif Display', serif;
  font-size: 0.92rem;
  line-height: 1.3;
  color: var(--text-primary);
  margin: 0.4rem 0 0.3rem;
}

.related-post-card:hover .related-post-title {
  color: var(--accent);
}

.related-post-desc {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-secondary);
  margin: 0;
}

/* ================================================================
   POST NAVIGATION (Prev / Next)
   ================================================================ */
.post-nav {
  position: relative;
  z-index: 1;
  max-width: var(--reading-width);
  margin: 0 auto;
  padding: 0 2rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.post-nav-link {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.3s, transform 0.35s var(--transition-smooth);
}

.post-nav-link:hover {
  border-color: var(--border);
  transform: translateY(-2px);
}

.post-nav-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.post-nav-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--text-primary);
}

.post-nav-link:hover .post-nav-title {
  color: var(--accent);
}

.post-nav-link.next {
  text-align: right;
}

/* ================================================================
   CTA BANNER
   ================================================================ */
.blog-cta {
  position: relative;
  z-index: 1;
  background: var(--bg-secondary);
  text-align: center;
  padding: 5rem 2rem;
  overflow: hidden;
}

.blog-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  pointer-events: none;
}

.blog-cta-inner {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}

.blog-cta-eyebrow {
  font-size: 0.72rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin-bottom: 1rem;
}

.blog-cta h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.blog-cta h2 em {
  color: var(--accent);
  font-style: italic;
}

.blog-cta p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 460px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.blog-cta .cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--bg-primary);
  padding: 1rem 2.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  font-family: 'Outfit', sans-serif;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.blog-cta .cta-btn:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-shadow-soft);
}

.blog-cta-note {
  margin-top: 1rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Inline CTA (within article body) */
.inline-cta {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  margin: 2.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.inline-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--green), var(--accent));
}

.inline-cta p {
  color: var(--text-secondary) !important;
  font-size: 0.95rem !important;
  margin-bottom: 1rem !important;
  line-height: 1.6 !important;
}

.inline-cta .cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent);
  color: var(--bg-primary);
  padding: 0.75rem 1.75rem;
  border-radius: 7px;
  font-weight: 600;
  font-size: 0.88rem;
  font-family: 'Outfit', sans-serif;
  transition: all 0.25s;
  border: none;
  cursor: pointer;
}

.inline-cta .cta-btn:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-shadow-faint);
}

/* ================================================================
   FOOTER
   ================================================================ */
.blog-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 2rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.blog-footer a {
  color: var(--accent);
  transition: color 0.2s;
}

.blog-footer a:hover {
  color: var(--accent-light);
}

.blog-footer .footer-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  display: inline-block;
}

.blog-footer .footer-logo span {
  color: var(--text-muted);
  font-weight: 400;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  margin-left: 0.5rem;
}

.blog-footer p {
  margin-top: 0.5rem;
}

/* ================================================================
   FOOTER — EMAIL SUBSCRIBE FORM
   ================================================================ */
.footer-subscribe {
  max-width: 480px;
  margin: 0 auto 2.5rem;
}

.footer-subscribe-label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  line-height: 1.5;
  cursor: pointer;
}

.footer-subscribe-form {
  display: flex;
  gap: 0;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background: var(--bg-card);
  position: relative;
}

.footer-subscribe-form:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.footer-subscribe-form input[type="email"] {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.7rem 1rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  color: var(--text-primary);
  outline: none;
  min-width: 0;
}

.footer-subscribe-form input[type="email"]::placeholder {
  color: var(--text-muted);
}

.footer-subscribe-form input[type="email"]:disabled {
  opacity: 0.5;
}

.footer-subscribe-form button {
  background: var(--accent);
  color: var(--bg-primary);
  border: none;
  padding: 0.7rem 1.25rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.25s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.footer-subscribe-form button:hover {
  background: var(--accent-light);
}

.footer-subscribe-form button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Honeypot — visually hidden, bots fill it */
.footer-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Loading spinner */
.subscribe-btn-loading {
  display: none;
}

.footer-subscribe-form button.loading .subscribe-btn-text {
  display: none;
}

.footer-subscribe-form button.loading .subscribe-btn-loading {
  display: flex;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Feedback message */
.footer-subscribe-msg {
  font-size: 0.75rem;
  margin-top: 0.5rem;
  min-height: 1.2em;
  transition: opacity 0.3s ease;
}

.footer-subscribe-msg.success {
  color: var(--green, #22c55e);
}

.footer-subscribe-msg.error {
  color: var(--red, #ef4444);
}

.footer-subscribe-msg.info {
  color: var(--text-muted);
}

/* Footer meta section */
.footer-meta {
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
}

/* Responsive: stack on small screens */
@media (max-width: 600px) {
  .footer-subscribe-form {
    flex-direction: column;
    border-radius: 8px;
  }

  .footer-subscribe-form button {
    justify-content: center;
    border-top: 1px solid var(--border-subtle);
  }
}

/* ================================================================
   SCROLL REVEAL ANIMATIONS
   ================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s var(--transition-smooth);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 0.4s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ================================================================
   EMPTY STATE (no blog posts yet)
   ================================================================ */
.blog-empty {
  text-align: center;
  padding: 4rem 2rem;
}

.blog-empty p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }

  .related-posts-grid {
    grid-template-columns: 1fr;
  }

  .post-nav {
    grid-template-columns: 1fr;
  }

  .post-nav-link.next {
    text-align: left;
  }

  .article-meta {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}

@media (max-width: 600px) {
  .blog-hero {
    padding: 8rem 1.25rem 3rem;
  }

  .blog-grid-section {
    padding: 0 1.25rem 4rem;
  }

  .blog-card-body {
    padding: 1.25rem;
  }

  .article-header {
    padding: 8rem 1.25rem 2rem;
  }

  .article-content {
    padding: 2rem 1.25rem 3rem;
  }

  .blog-cta {
    padding: 4rem 1.25rem;
  }

  .blog-nav {
    padding: 1rem 1.25rem;
  }

  .nav-cta {
    padding: 0.5rem 1rem;
    font-size: 0.78rem;
  }

  .post-nav {
    padding: 0 1.25rem 3rem;
  }

  .article-content h2 {
    font-size: 1.4rem;
  }
}

/* ================================================================
   PRINT STYLES
   ================================================================ */
@media print {
  body::before,
  body::after,
  .blog-nav,
  .blog-cta,
  .blog-footer,
  .related-posts,
  .post-nav {
    display: none !important;
  }

  body {
    background: white;
    color: #1a1a1a;
  }

  .article-content {
    max-width: 100%;
    padding: 0;
  }

  .article-content a {
    color: #1a1a1a;
    text-decoration: underline;
  }

  .article-content a::after {
    content: ' (' attr(href) ')';
    font-size: 0.8em;
    color: #666;
  }
}
