/* =============================================
   MakeYourTale — Premium Blog Styles
   Dark Navy + Amber | SaaS B2B | Glassmorphism
   ============================================= */

/* ===== CSS Reset & Custom Properties ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* 🎨 Brand Colors (matching landing page) */
  --navy-deep: #0A1628;
  --navy-mid: #0F2B3D;
  --navy-card: #1A2D45;
  --navy-light: #1E3A5F;
  --amber: #F59E0B;
  --amber-hover: #D97706;
  --amber-soft: #FDE68A;
  --off-white: #FAFAF9;
  --off-white-alt: #F5F5F4;
  --slate: #64748B;
  --slate-light: #94A3B8;
  --slate-dark: #334155;
  --success: #10B981;
  --info: #38BDF8;

  /* Functional tokens */
  --text-dark: #1C1917;
  --text-light: #FAFAF9;
  --text-muted: #94A3B8;
  --border-light: rgba(250, 250, 249, 0.1);
  --border-card: rgba(250, 250, 249, 0.08);
  --glass-bg: rgba(15, 43, 61, 0.6);
  --glass-border: rgba(250, 250, 249, 0.12);
  --card-hover-border: rgba(245, 158, 11, 0.25);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;

  /* Layout */
  --container: 1200px;
  --container-narrow: 720px;
  --gutter: 24px;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s var(--ease-out-expo);
  --transition: 0.35s var(--ease-out-expo);
  --transition-slow: 0.6s var(--ease-out-expo);
}

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

body {
  font-family: var(--font-sans);
  color: var(--text-light);
  background: var(--navy-deep);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ===== Text Utilities ===== */
.text-gradient {
  background: linear-gradient(135deg, var(--amber), var(--amber-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-amber { color: var(--amber); }
.text-muted { color: var(--text-muted); }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  background: rgba(245, 158, 11, 0.1);
  color: var(--amber);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  border: 1px solid rgba(245, 158, 11, 0.2);
  transition: var(--transition);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

.btn-primary {
  background: linear-gradient(135deg, var(--amber), var(--amber-hover));
  color: var(--navy-deep);
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text-light);
  border: 1.5px solid rgba(250, 250, 249, 0.2);
}

.btn-outline:hover {
  border-color: var(--amber);
  color: var(--amber);
  background: rgba(245, 158, 11, 0.06);
  transform: translateY(-2px);
}

/* ===== Scroll Animations ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.reveal {
  opacity: 0;
  transition: var(--transition-slow);
}

.reveal.visible {
  animation: fadeUp 0.7s var(--ease-out-expo) forwards;
}

/* =============================================
   NAVBAR (matches landing page style)
   ============================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid var(--glass-border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

.nav-logo img { height: 32px; width: auto; }

.nav-logo-text {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-light);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  text-decoration: none;
  color: rgba(250, 250, 249, 0.65);
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

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

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

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

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

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

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 2;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-light);
  border-radius: 2px;
  transition: var(--transition);
}

/* =============================================
   BLOG HERO
   ============================================= */
.blog-hero {
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.blog-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy-mid) 100%);
}

.blog-hero-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.blog-hero-bg::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.blog-hero .container {
  position: relative;
  z-index: 1;
}

.blog-hero-content {
  max-width: 720px;
}

.blog-hero-badge {
  display: inline-flex;
  padding: 8px 18px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--amber);
  margin-bottom: 24px;
  animation: fadeUp 0.6s var(--ease-out-expo) 0.3s both;
}

.blog-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
  animation: fadeUp 0.7s var(--ease-out-expo) 0.5s both;
}

.blog-hero p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(250, 250, 249, 0.65);
  max-width: 620px;
  margin-bottom: 32px;
  animation: fadeUp 0.7s var(--ease-out-expo) 0.7s both;
}

/* Hero Stats */
.blog-hero-stats {
  display: flex;
  gap: 32px;
  animation: fadeUp 0.7s var(--ease-out-expo) 0.9s both;
}

.blog-hero-stat {
  display: flex;
  flex-direction: column;
}

.blog-hero-stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-light);
  line-height: 1;
}

.blog-hero-stat-value .suffix {
  color: var(--amber);
  font-weight: 700;
}

.blog-hero-stat-label {
  font-size: 0.78rem;
  color: rgba(250, 250, 249, 0.4);
  margin-top: 4px;
}

.blog-hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(250, 250, 249, 0.08);
  align-self: center;
}

/* =============================================
   BLOG LAYOUT: Grid + Sidebar
   ============================================= */
.blog-layout {
  padding: 0 0 100px;
  position: relative;
}

.blog-layout::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

.blog-grid-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

/* =============================================
   ARTICLE GRID
   ============================================= */
.articles-section {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.section-label-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--glass-border), transparent);
}

.section-label span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  white-space: nowrap;
}

.article-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition);
  backdrop-filter: blur(12px);
  position: relative;
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-hover-border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.article-card-inner {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-card.featured-card {
  background: linear-gradient(135deg, rgba(15, 43, 61, 0.8), rgba(10, 22, 40, 0.9));
  border-color: rgba(245, 158, 11, 0.2);
}

.article-card-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
}

.article-card-category.ai-seo { background: rgba(56, 189, 248, 0.1); border-color: rgba(56, 189, 248, 0.2); color: var(--info); }
.article-card-category.guides { background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.2); color: var(--amber); }
.article-card-category.cases { background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.2); color: var(--success); }
.article-card-category.tech { background: rgba(99, 102, 241, 0.1); border-color: rgba(99, 102, 241, 0.2); color: #818CF8; }

.article-card h2,
.article-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.article-card h2 a,
.article-card h3 a {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition);
}

.article-card h2 a:hover,
.article-card h3 a:hover {
  color: var(--amber);
}

.article-card p {
  font-size: 0.92rem;
  color: rgba(250, 250, 249, 0.55);
  line-height: 1.7;
}

.article-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
  color: rgba(250, 250, 249, 0.4);
}

.article-card-meta .dot {
  width: 3px;
  height: 3px;
  background: rgba(250, 250, 249, 0.2);
  border-radius: 50%;
}

.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid rgba(250, 250, 249, 0.05);
}

.article-card-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-card-author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--amber-hover));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--navy-deep);
}

.article-card-author-name {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(250, 250, 249, 0.5);
}

.article-card-read {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.article-card-read:hover {
  gap: 10px;
  color: var(--amber-hover);
}

/* Featured card larger */
.article-card.featured-card .article-card-inner {
  padding: 40px;
}

.article-card.featured-card h2 {
  font-size: 1.5rem;
}

.article-card.featured-card p {
  font-size: 1rem;
}

/* Article card with image */
.article-card-with-img {
  display: grid;
  grid-template-columns: 240px 1fr;
}

.article-card-img {
  overflow: hidden;
  position: relative;
}

.article-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.article-card:hover .article-card-img img {
  transform: scale(1.05);
}

.article-card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(10, 22, 40, 0.4));
}

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: sticky;
  top: 100px;
}

.sidebar-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 28px;
  backdrop-filter: blur(12px);
}

.sidebar-card h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(250, 250, 249, 0.06);
}

/* Categories */
.sidebar-categories {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 10px;
  transition: var(--transition);
  text-decoration: none;
}

.sidebar-category:hover {
  background: rgba(245, 158, 11, 0.06);
}

.sidebar-category-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(250, 250, 249, 0.7);
  transition: var(--transition);
}

.sidebar-category:hover .sidebar-category-name {
  color: var(--amber);
}

.sidebar-category-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.sidebar-category-count {
  font-size: 0.78rem;
  color: rgba(250, 250, 249, 0.3);
  background: rgba(250, 250, 249, 0.05);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
}

/* Popular articles */
.sidebar-popular {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-popular-item {
  display: flex;
  gap: 12px;
  text-decoration: none;
  transition: var(--transition);
}

.sidebar-popular-item:hover {
  opacity: 0.8;
}

.sidebar-popular-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: rgba(245, 158, 11, 0.2);
  line-height: 1;
  min-width: 28px;
  font-feature-settings: "tnum";
}

.sidebar-popular-info h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  line-height: 1.35;
  margin-bottom: 4px;
  transition: var(--transition);
}

.sidebar-popular-item:hover .sidebar-popular-info h4 {
  color: var(--amber);
}

.sidebar-popular-info span {
  font-size: 0.75rem;
  color: rgba(250, 250, 249, 0.35);
}

/* Newsletter sidebar */
.sidebar-newsletter p {
  font-size: 0.85rem;
  color: rgba(250, 250, 249, 0.5);
  line-height: 1.6;
  margin-bottom: 16px;
}

.sidebar-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-newsletter-form input {
  padding: 12px 16px;
  background: rgba(250, 250, 249, 0.06);
  border: 1px solid rgba(250, 250, 249, 0.1);
  border-radius: 10px;
  color: var(--text-light);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition);
}

.sidebar-newsletter-form input::placeholder {
  color: rgba(250, 250, 249, 0.25);
}

.sidebar-newsletter-form input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.sidebar-newsletter-form .btn {
  justify-content: center;
}

/* =============================================
   SINGLE ARTICLE
   ============================================= */
.article-page {
  padding: 100px 0 60px;
}

.article-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}

.article-main {
  max-width: 720px;
}

/* Breadcrumbs */
.article-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.82rem;
  flex-wrap: wrap;
}

.article-breadcrumbs a {
  color: rgba(250, 250, 249, 0.4);
  text-decoration: none;
  transition: var(--transition);
}

.article-breadcrumbs a:hover {
  color: var(--amber);
}

.article-breadcrumbs .sep {
  color: rgba(250, 250, 249, 0.15);
  font-size: 0.7rem;
}

.article-breadcrumbs .current {
  color: rgba(250, 250, 249, 0.5);
}

/* Header */
.article-header {
  margin-bottom: 40px;
}

.article-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.article-header h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  color: var(--text-light);
}

.article-header p {
  font-size: 1.05rem;
  color: rgba(250, 250, 249, 0.55);
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Article Meta Bar */
.article-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1px solid rgba(250, 250, 249, 0.06);
  border-bottom: 1px solid rgba(250, 250, 249, 0.06);
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 12px;
}

.article-meta-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.article-meta-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--amber-hover));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-deep);
  flex-shrink: 0;
}

.article-meta-author-info {
  display: flex;
  flex-direction: column;
}

.article-meta-author-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
}

.article-meta-date {
  font-size: 0.78rem;
  color: rgba(250, 250, 249, 0.4);
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-meta-date .dot-sep {
  width: 3px;
  height: 3px;
  background: rgba(250, 250, 249, 0.2);
  border-radius: 50%;
}

/* Social Share */
.article-social-share {
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-social-share span {
  font-size: 0.75rem;
  color: rgba(250, 250, 249, 0.3);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(250, 250, 249, 0.1);
  background: rgba(250, 250, 249, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(250, 250, 249, 0.5);
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

.share-btn:hover {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.2);
  color: var(--amber);
  transform: translateY(-2px);
}

/* Article Featured Image */
.article-featured-image {
  margin-bottom: 40px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.article-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.article-featured-image figcaption {
  padding: 12px 16px;
  font-size: 0.78rem;
  color: rgba(250, 250, 249, 0.3);
  background: rgba(10, 22, 40, 0.6);
}

/* Article Content */
.article-content {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.85;
  color: rgba(250, 250, 249, 0.82);
}

.article-content h2 {
  font-family: var(--font-sans);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 48px 0 16px;
  color: var(--text-light);
  letter-spacing: -0.02em;
}

.article-content h3 {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 36px 0 12px;
  color: var(--text-light);
}

.article-content h4 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 28px 0 8px;
  color: var(--text-light);
}

.article-content p {
  margin-bottom: 20px;
}

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

.article-content strong {
  color: var(--text-light);
  font-weight: 600;
}

.article-content a {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: var(--transition);
}

.article-content a:hover {
  color: var(--amber-hover);
  text-decoration: none;
}

.article-content ul,
.article-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.article-content li strong {
  color: var(--text-light);
}

.article-content blockquote {
  border-left: 3px solid var(--amber);
  padding: 20px 24px;
  margin: 32px 0;
  background: rgba(245, 158, 11, 0.04);
  border-radius: 0 12px 12px 0;
  color: rgba(250, 250, 249, 0.7);
  font-style: italic;
  font-size: 1.05rem;
}

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

.article-content img {
  width: 100%;
  border-radius: 12px;
  margin: 32px 0;
  border: 1px solid var(--glass-border);
}

.article-content hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
  margin: 48px 0;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 32px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  border-radius: 12px;
  overflow: hidden;
}

.article-content table thead {
  background: rgba(245, 158, 11, 0.08);
}

.article-content table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text-light);
  border-bottom: 1px solid var(--glass-border);
}

.article-content table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(250, 250, 249, 0.05);
  color: rgba(250, 250, 249, 0.7);
}

.article-content table tr:last-child td {
  border-bottom: none;
}

.article-content code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.85em;
  background: rgba(250, 250, 249, 0.06);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--amber-soft);
}

/* =============================================
   AUTHOR BIO
   ============================================= */
.article-author-bio {
  margin-top: 48px;
  padding: 28px;
  background: rgba(15, 43, 61, 0.4);
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.article-author-bio-avatar {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--amber-hover));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy-deep);
}

.article-author-bio-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 4px;
}

.article-author-bio-info p {
  font-size: 0.85rem;
  color: rgba(250, 250, 249, 0.5);
  line-height: 1.6;
}

/* =============================================
   NEWSLETTER CTA (in-article)
   ============================================= */
.article-newsletter-cta {
  margin-top: 40px;
  padding: 32px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(245, 158, 11, 0.02));
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: 16px;
  text-align: center;
}

.article-newsletter-cta h3 {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 8px;
}

.article-newsletter-cta p {
  font-size: 0.9rem;
  color: rgba(250, 250, 249, 0.5);
  margin-bottom: 20px;
  font-family: var(--font-sans);
}

.article-newsletter-cta form {
  display: flex;
  gap: 8px;
  max-width: 440px;
  margin: 0 auto;
}

.article-newsletter-cta input {
  flex: 1;
  padding: 12px 16px;
  background: rgba(250, 250, 249, 0.06);
  border: 1px solid rgba(250, 250, 249, 0.1);
  border-radius: 10px;
  color: var(--text-light);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition);
}

.article-newsletter-cta input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.article-newsletter-cta .btn {
  flex-shrink: 0;
}

/* =============================================
   RELATED ARTICLES
   ============================================= */
.article-related {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(250, 250, 249, 0.06);
}

.article-related h3 {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

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

.related-card {
  padding: 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.related-card:hover {
  border-color: var(--card-hover-border);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.related-card a {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.4;
  display: block;
  transition: var(--transition);
}

.related-card a:hover {
  color: var(--amber);
}

.related-card p {
  color: rgba(250, 250, 249, 0.4);
  font-size: 0.78rem;
  margin-top: 8px;
  line-height: 1.5;
  font-family: var(--font-sans);
}

/* =============================================
   ARTICLE SIDEBAR (right column in article layout)
   ============================================= */
.article-sidebar-col {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.article-toc {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(12px);
}

.article-toc h4 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.article-toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.article-toc-list a {
  font-size: 0.82rem;
  color: rgba(250, 250, 249, 0.5);
  text-decoration: none;
  padding: 4px 0;
  transition: var(--transition);
  line-height: 1.4;
  display: block;
}

.article-toc-list a:hover {
  color: var(--amber);
  padding-left: 4px;
}

.article-sidebar-cta {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(15, 43, 61, 0.4));
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}

.article-sidebar-cta h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 8px;
}

.article-sidebar-cta p {
  font-size: 0.82rem;
  color: rgba(250, 250, 249, 0.5);
  margin-bottom: 16px;
  line-height: 1.5;
}

.article-sidebar-cta .btn {
  width: 100%;
  justify-content: center;
}

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy-mid) 100%);
  z-index: 0;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  color: var(--text-light);
}

.cta-section p {
  font-size: 1rem;
  color: rgba(250, 250, 249, 0.5);
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  padding: 64px 0 32px;
  background: var(--navy-deep);
  border-top: 1px solid rgba(250, 250, 249, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: rgba(250, 250, 249, 0.4);
  font-size: 0.85rem;
  margin-top: 8px;
}

.footer-brand-desc {
  color: rgba(250, 250, 249, 0.3);
  font-size: 0.82rem;
  margin-top: 12px;
  line-height: 1.6;
  max-width: 260px;
}

.footer-links h4 {
  color: var(--text-light);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.footer-links a {
  display: block;
  color: rgba(250, 250, 249, 0.4);
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 10px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--amber);
  transform: translateX(3px);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(250, 250, 249, 0.05);
  text-align: center;
}

.footer-bottom p {
  color: rgba(250, 250, 249, 0.2);
  font-size: 0.78rem;
}

/* =============================================
   RESPONSIVE
   ============================================= */

/* Tablet */
@media (max-width: 1024px) {
  .blog-grid-layout {
    grid-template-columns: 1fr;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar-col {
    display: none;
  }

  .article-card-with-img {
    grid-template-columns: 1fr;
  }

  .article-card-img {
    height: 200px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .article-related h3 {
    font-size: 1rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .blog-hero {
    padding: 100px 0 60px;
  }

  .blog-hero h1 {
    font-size: 2rem;
  }

  .blog-hero-stats {
    flex-direction: column;
    gap: 12px;
  }

  .blog-hero-stat-divider {
    display: none;
  }

  .blog-hero-stat-value {
    font-size: 1.3rem;
  }

  /* Nav mobile */
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    justify-content: center;
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(24px);
    gap: 20px;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }

  .nav-links.nav-open {
    opacity: 1;
    pointer-events: all;
  }

  .nav-link {
    font-size: 1.3rem;
    color: var(--text-light);
  }

  .mobile-menu-btn {
    display: flex;
  }

  .nav-links.nav-open ~ .mobile-menu-btn span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav-links.nav-open ~ .mobile-menu-btn span:nth-child(2) {
    opacity: 0;
  }
  .nav-links.nav-open ~ .mobile-menu-btn span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Article card */
  .article-card.featured-card .article-card-inner {
    padding: 24px;
  }

  .article-card-inner {
    padding: 24px;
  }

  .article-card.featured-card h2 {
    font-size: 1.25rem;
  }

  .article-card p {
    font-size: 0.85rem;
  }

  /* Article page */
  .article-page {
    padding: 80px 0 40px;
  }

  .article-header h1 {
    font-size: 1.6rem;
  }

  .article-meta-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .article-content {
    font-size: 1rem;
  }

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

  .article-content h3 {
    font-size: 1.1rem;
  }

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

  .article-author-bio {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .article-newsletter-cta form {
    flex-direction: column;
  }

  .cta-section h2 {
    font-size: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-links h4 {
    margin-bottom: 12px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .blog-hero h1 {
    font-size: 1.7rem;
  }

  .article-header h1 {
    font-size: 1.4rem;
  }
}
