/* 
   AISocial.cz - Blog Design System (blog.css)
   Created for premium look, enhanced readability, and interactive SVG charts
*/

:root {
  --black: #080808;
  --surface: #0e0e0e;
  --card: #121212;
  --card-glass: rgba(18, 18, 18, 0.75);
  --border: #1d1d1d;
  --border-glass: rgba(255, 255, 255, 0.08);
  --yellow: #FFD700;
  --yellow-glow: rgba(255, 215, 0, 0.12);
  --yellow-glow-strong: rgba(255, 215, 0, 0.3);
  --white: #fafafa;
  --text: #e0e0e0;
  --muted: #888888;
  --font-sans: 'DM Sans', sans-serif;
  --font-serif: 'Playfair Display', serif;
}

/* Reset & Base Rules */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--black);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Navigation Bar */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 52px;
  background: rgba(8, 8, 8, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  transition: all 0.3s ease;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.nav-brand:hover {
  opacity: 0.95;
}

.nav-brand img {
  height: 38px;
  width: 38px;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-brand:hover img {
  transform: scale(1.1) rotate(-5deg);
}

.nav-brand span {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-back {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 400;
  transition: color 0.25s ease, transform 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-back:hover {
  color: var(--yellow);
  transform: translateX(-2px);
}

.nav-btn {
  background: var(--yellow);
  color: #000;
  padding: 10px 22px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.15);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

/* Hero Section */
.blog-hero {
  padding: 160px 52px 60px;
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: 80px;
  left: 20%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.03) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
  z-index: -1;
}

.blog-hero-label {
  font-size: 0.78rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.blog-hero-label::before {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--yellow);
  display: block;
}

.blog-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.blog-hero h1 em {
  font-style: italic;
  color: var(--yellow);
  font-weight: 700;
}

.blog-hero p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #cccccc;
  max-width: 680px;
}

/* Articles Grid */
.blog-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 52px 100px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.blog-card {
  background: var(--card-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 38px 34px;
  text-decoration: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--yellow), #ffa500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 215, 0, 0.25);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(255, 215, 0, 0.03);
}

.blog-card:hover::before {
  transform: scaleX(1);
}

.blog-card-tag {
  font-size: 0.72rem;
  color: var(--yellow);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 500;
}

h2.blog-card-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 14px;
  letter-spacing: -0.015em;
  margin-top: 0;
}

.blog-card-desc {
  font-size: 0.96rem;
  color: #b0b0b0;
  line-height: 1.65;
  margin-bottom: 24px;
  flex: 1;
}

/* Article Page specific styling */
.article-hero {
  padding: 160px 52px 60px;
  max-width: 820px;
  margin: 0 auto;
}

.article-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.article-title em {
  font-style: italic;
  color: var(--yellow);
  font-weight: 700;
}

.article-perex {
  font-size: 1.25rem;
  line-height: 1.85;
  color: #dbdbdb;
  border-left: 3px solid var(--yellow);
  padding-left: 24px;
  margin-bottom: 20px;
  font-weight: 300;
}

.article-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 52px 80px;
}

.article-content h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  margin: 56px 0 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.article-content h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  margin: 40px 0 16px;
  line-height: 1.25;
}

.article-content p {
  font-size: 1.08rem;
  line-height: 1.9;
  color: #dddddd;
  margin-bottom: 24px;
}

.article-content strong {
  color: var(--white);
  font-weight: 500;
}

.article-content em {
  color: var(--yellow);
  font-style: italic;
}

.article-content ul, .article-content ol {
  margin: 24px 0 36px 0;
  padding-left: 0;
  list-style: none;
}

.article-content ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
  font-size: 1.06rem;
  line-height: 1.85;
  color: #dddddd;
}

.article-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFD700' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* Numbered lists */
.article-content ol {
  counter-reset: ol-counter;
}

.article-content ol li {
  position: relative;
  padding-left: 36px;
  margin-bottom: 14px;
  font-size: 1.06rem;
  line-height: 1.85;
  color: #dddddd;
  counter-increment: ol-counter;
}

.article-content ol li::before {
  content: counter(ol-counter, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 4px;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--yellow);
  line-height: 1;
}

/* Breathing animation for call to action buttons */
@keyframes pulseGlowButton {
  0% {
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
  }
  50% {
    box-shadow: 0 4px 28px rgba(255, 215, 0, 0.5);
  }
  100% {
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
  }
}

.lead-cta-btn, .article-cta-btn, .nav-btn, .c2 a, .x {
  animation: pulseGlowButton 3.5s infinite ease-in-out;
}


.article-content blockquote {
  background: var(--card-glass);
  border-left: 3px solid var(--yellow);
  padding: 28px 32px;
  margin: 40px 0;
  border-radius: 0 16px 16px 0;
  border-top: 1px solid var(--border-glass);
  border-right: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
}

.article-content blockquote p {
  color: #d0d0d0;
  font-size: 1.05rem;
  margin-bottom: 0;
  font-style: italic;
}

/* Date and Reading Time Metadata Badges */
.meta-badge-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.78rem;
  color: #b8b8b8;
  font-weight: 400;
  transition: all 0.25s ease;
}

.meta-badge.yellow-badge {
  background: rgba(255, 215, 0, 0.05);
  border-color: rgba(255, 215, 0, 0.15);
  color: var(--yellow);
}

.meta-badge svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  opacity: 0.85;
}

.meta-badge:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.meta-badge.yellow-badge:hover {
  background: rgba(255, 215, 0, 0.08);
  border-color: rgba(255, 215, 0, 0.3);
  color: var(--white);
}

/* For Index Card Meta lines */
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 18px;
  margin-top: auto;
  flex-wrap: wrap;
}

.blog-card-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-card-meta .meta-item svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  opacity: 0.7;
}

.blog-card-arrow {
  margin-left: auto;
  color: var(--yellow);
  font-size: 1.2rem;
  transition: transform 0.25s ease;
  line-height: 1;
}

.blog-card:hover .blog-card-arrow {
  transform: translateX(6px);
}

/* Highlight Box */
.highlight-box {
  background: rgba(255, 215, 0, 0.04);
  border: 1px solid rgba(255, 215, 0, 0.18);
  border-radius: 16px;
  padding: 32px 36px;
  margin: 40px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.highlight-box h3 {
  margin-top: 0 !important;
  color: var(--yellow);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.highlight-box p {
  font-size: 1.02rem;
  margin-bottom: 0 !important;
  color: #dddddd;
}

.highlight-box ul {
  margin-top: 16px;
  margin-bottom: 0;
}

.highlight-box li {
  font-size: 1rem;
  margin-bottom: 8px;
}

/* Callout */
.callout {
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(255, 215, 0, 0.03);
  border-left: 3px solid var(--yellow);
  border-radius: 0 16px 16px 0;
  padding: 24px 28px;
  margin: 36px 0;
  border-top: 1px solid var(--border-glass);
  border-right: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
}

.callout-num {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--yellow);
  line-height: 1;
  flex-shrink: 0;
}

.callout-text {
  font-size: 1rem;
  color: #cccccc;
  line-height: 1.65;
}

/* Statistics Grid */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0;
}

.stat-card {
  background: var(--card-glass);
  backdrop-filter: blur(5px);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 215, 0, 0.15);
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--yellow);
  line-height: 1.1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--yellow), #ffa500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.84rem;
  color: #999999;
  line-height: 1.4;
  font-weight: 400;
}

/* SVG Graphs & Visualizations styling */
.svg-graph-container {
  background: var(--card-glass);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 28px 32px;
  margin: 40px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.svg-graph-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 4px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.svg-graph-subtitle {
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 24px;
}

/* Animations for SVGs */
@keyframes drawStroke {
  from {
    stroke-dashoffset: 1000;
  }
  to {
    stroke-dashoffset: 0;
  }
}

.animated-path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawStroke 3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes pulseGlow {
  0% {
    filter: drop-shadow(0 0 2px rgba(255, 215, 0, 0.4));
  }
  50% {
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
  }
  100% {
    filter: drop-shadow(0 0 2px rgba(255, 215, 0, 0.4));
  }
}

.glow-point {
  animation: pulseGlow 2s infinite ease-in-out;
}

/* Existing Bar Compare (Refined) */
.bar-compare {
  margin: 40px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bar-label {
  font-size: 0.88rem;
  color: #cccccc;
  width: 120px;
  flex-shrink: 0;
  text-align: right;
  font-weight: 400;
}

.bar-track {
  flex: 1;
  height: 36px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.bar-fill {
  height: 100%;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #000;
  white-space: nowrap;
  transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.bar-fill.gold {
  background: linear-gradient(90deg, var(--yellow), #ffaa00);
}

.bar-fill.muted {
  background: rgba(255, 255, 255, 0.15);
  color: #dddddd;
}

/* Tables (Refined) */
.article-table {
  width: 100%;
  border-collapse: collapse;
  margin: 36px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
}

.article-table th {
  background: rgba(255, 215, 0, 0.06);
  color: var(--yellow);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.article-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-glass);
  font-size: 0.98rem;
  color: #cccccc;
}

.article-table tr:last-child td {
  border-bottom: none;
}

.article-table tr:hover td {
  background: rgba(255, 215, 0, 0.02);
}

/* Call to Actions (CTAs) */
.lead-cta {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.06), rgba(255, 215, 0, 0.01));
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 20px;
  padding: 40px 36px;
  margin: 48px 0;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.lead-cta h3 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.lead-cta p {
  font-size: 0.98rem;
  color: #b0b0b0;
  margin-bottom: 24px;
}

.lead-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--yellow);
  color: #000;
  padding: 14px 30px;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
}

.lead-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 215, 0, 0.4);
}

.article-cta {
  background: var(--card-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 56px 40px;
  text-align: center;
  margin: 80px 0 0;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.article-cta::after {
  content: '';
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.02) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
}

.article-cta h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
}

.article-cta p {
  font-size: 1.05rem;
  color: #b0b0b0;
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.article-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--yellow);
  color: #000;
  padding: 16px 36px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.article-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 215, 0, 0.45);
}

/* Related Articles */
.related {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 52px 80px;
}

.related h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.related-card {
  background: var(--card-glass);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 30px 26px;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.related-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 215, 0, 0.2);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.related-card-tag {
  font-size: 0.68rem;
  color: var(--yellow);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 500;
}

.related-card-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 10px;
}

.related-card-desc {
  font-size: 0.88rem;
  color: #999999;
  line-height: 1.55;
}

/* Footer Section */
footer {
  border-top: 1px solid var(--border);
  padding: 36px 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  background-color: #060606;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.footer-logo img {
  height: 28px;
  width: 28px;
  object-fit: contain;
}

.footer-logo span {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--white);
}

.footer-copy {
  font-size: 0.8rem;
  color: #777777;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.8rem;
  color: #888888;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--yellow);
}

.footer-social {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer-social a {
  color: #777777;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover {
  color: var(--yellow);
  transform: translateY(-2px);
}

/* RESPONSIVE DESIGN */
@media (max-width: 960px) {
  nav {
    padding: 14px 24px;
    background: rgba(8, 8, 8, 0.7);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  }

  .nav-brand span {
    font-size: 1rem;
  }

  .nav-right {
    gap: 16px;
  }

  .nav-back {
    font-size: 0.8rem;
  }

  .nav-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  .blog-hero {
    padding: 120px 24px 40px;
  }

  .blog-hero h1 {
    font-size: 2.2rem;
  }

  .blog-hero p {
    font-size: 1.05rem;
  }

  .blog-grid {
    padding: 20px 24px 80px;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .blog-card {
    padding: 32px 28px;
  }

  /* Articles */
  .article-hero {
    padding: 120px 24px 40px;
  }

  .article-title {
    font-size: clamp(1.8rem, 6vw, 2.6rem);
  }

  .article-perex {
    font-size: 1.08rem;
    padding-left: 16px;
  }

  .article-content {
    padding: 30px 24px 60px;
  }

  .article-content h2 {
    font-size: 1.5rem;
    margin: 44px 0 16px;
  }

  .article-content p {
    font-size: 1.02rem;
  }

  .article-cta {
    padding: 40px 24px;
    border-radius: 18px;
  }

  .article-cta h2 {
    font-size: 1.6rem;
  }

  .article-cta p {
    font-size: 0.98rem;
  }

  .related {
    padding: 0 24px 60px;
  }

  .related-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .highlight-box {
    padding: 24px;
    margin: 28px 0;
  }

  .lead-cta {
    padding: 28px 24px;
  }

  .callout {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 20px;
  }

  .callout-num {
    font-size: 2.2rem;
  }

  .stat-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 28px 0;
  }

  .stat-card {
    padding: 20px 10px;
  }

  .stat-num {
    font-size: 1.8rem;
  }

  .stat-label {
    font-size: 0.72rem;
  }

  .bar-label {
    width: 80px;
    font-size: 0.8rem;
  }

  .bar-track {
    height: 32px;
  }

  .svg-graph-container {
    padding: 20px;
    margin: 28px 0;
  }

  footer {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
    gap: 24px;
  }

  .footer-links {
    justify-content: center;
    gap: 16px;
  }
}

/* Helper aliases to support legacy Format B layout seamlessly */
.w {
  max-width: 720px;
  margin: 0 auto;
  padding: 160px 24px 80px;
}
.t {
  font-size: 0.78rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}
.h {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.p {
  font-size: 1.25rem;
  line-height: 1.85;
  color: #dbdbdb;
  border-left: 3px solid var(--yellow);
  padding-left: 24px;
  margin-bottom: 30px;
  font-weight: 300;
}
.g {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0;
}
.c {
  background: var(--card-glass);
  backdrop-filter: blur(5px);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.c:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 215, 0, 0.15);
}
.n {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--yellow);
  line-height: 1.1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--yellow), #ffa500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.l {
  font-size: 0.84rem;
  color: #999999;
  line-height: 1.4;
  font-weight: 400;
}
.bx {
  background: var(--card-glass);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 32px 36px;
  margin: 32px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.bx h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.bx p, .bx li {
  font-size: 1.06rem;
  line-height: 1.9;
  color: #dddddd;
  margin-bottom: 16px;
}
.bx p:last-child {
  margin-bottom: 0;
}
.bx ul {
  margin-top: 16px;
  margin-bottom: 0;
  padding-left: 20px;
}
.bx li {
  margin-bottom: 8px;
}
.q {
  background: var(--card-glass);
  border-left: 3px solid var(--yellow);
  padding: 28px 32px;
  margin: 32px 0;
  border-radius: 0 16px 16px 0;
  border-top: 1px solid var(--border-glass);
  border-right: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
}
.q b {
  color: var(--yellow);
  font-weight: 500;
  display: block;
  margin-bottom: 8px;
}
.q p {
  color: #d0d0d0;
  font-size: 1.05rem;
  margin-bottom: 0;
  font-style: italic;
  line-height: 1.8;
}
.c2 {
  background: var(--card-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 56px 40px;
  text-align: center;
  margin: 60px 0;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}
.c2 h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
}
.c2 p {
  font-size: 1.05rem;
  color: #b0b0b0;
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}
.c2 a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--yellow);
  color: #000;
  padding: 16px 36px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}
.c2 a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 215, 0, 0.45);
}
.bar {
  height: 26px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 999px;
  overflow: hidden;
  margin: 14px 0;
}
.bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--yellow), #ffaa00);
  color: #000;
  font-size: 0.75rem;
  line-height: 26px;
  padding: 0 14px;
  white-space: nowrap;
}
.table-wrap {
  overflow-x: auto;
  margin: 36px 0;
  border: 1px solid var(--border-glass);
  border-radius: 12px;
}
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th {
  background: rgba(255, 215, 0, 0.06);
  color: var(--yellow);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-glass);
  font-size: 0.98rem;
  color: #cccccc;
}
.table tr:last-child td {
  border-bottom: none;
}
.table tr:hover td {
  background: rgba(255, 215, 0, 0.02);
}
.timeline {
  display: grid;
  gap: 20px;
  margin: 36px 0;
}
.r {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.r a {
  background: var(--card-glass);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 30px 26px;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  display: block;
}
.r a:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 215, 0, 0.2);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}
.r small {
  font-size: 0.68rem;
  color: var(--yellow);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 500;
  display: block;
}
.r h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
  margin-top: 8px;
}
@media (max-width: 960px) {
  .w {
    padding: 120px 24px 40px;
  }
  .g {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .c {
    padding: 20px 10px;
  }
  .n {
    font-size: 1.8rem;
  }
  .l {
    font-size: 0.72rem;
  }
  .bx {
    padding: 24px;
    margin: 20px 0;
  }
  .c2 {
    padding: 40px 24px;
  }
  .c2 h2 {
    font-size: 1.6rem;
  }
  .c2 p {
    font-size: 0.98rem;
  }
  .r {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Helper navigation aliases for legacy Format B layout */
.b {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.b img {
  height: 38px !important;
  width: 38px !important;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.b:hover img {
  transform: scale(1.1) rotate(-5deg);
}
.b span {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}
.x {
  background: var(--yellow);
  color: #000 !important;
  padding: 10px 22px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.15);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}
.x:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}
@media (max-width: 960px) {
  .x {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
}

/* Custom layout classes for specific blog posts */

/* 1. Before/After Comparison Card Layout */
.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 36px 0;
}
.ba-card {
  background: var(--card-glass);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 28px 24px;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.ba-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}
.ba-card.bad {
  border-left: 3px solid #ff4a4a;
}
.ba-card.bad:hover {
  border-color: rgba(255, 74, 74, 0.3);
  box-shadow: 0 10px 25px rgba(255, 74, 74, 0.05);
}
.ba-card.good {
  border-left: 3px solid #4aff4a;
}
.ba-card.good:hover {
  border-color: rgba(74, 255, 74, 0.3);
  box-shadow: 0 10px 25px rgba(74, 255, 74, 0.05);
}
.ba-label {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.bad .ba-label::before {
  content: '✕';
  color: #ff4a4a;
  font-weight: bold;
}
.good .ba-label::before {
  content: '✓';
  color: #4aff4a;
  font-weight: bold;
}
.ba-text {
  font-size: 0.94rem;
  color: #cccccc;
  line-height: 1.65;
}

/* 2. Format Grid Layout */
.format-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin: 36px 0;
}
.format-card {
  background: var(--card-glass);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 28px 24px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.format-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 215, 0, 0.2);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}
.format-kicker {
  font-size: 0.68rem;
  color: var(--yellow);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 500;
}
.format-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.format-desc {
  font-size: 0.94rem;
  color: #b0b0b0;
  line-height: 1.65;
}

/* 3. Hook Card Layout */
.hook-card {
  background: var(--card-glass);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 32px;
  margin: 24px 0;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.hook-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 215, 0, 0.2);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}
.hook-num {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--yellow);
  line-height: 1;
  margin-bottom: 12px;
}
.hook-type {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}
.hook-use, .hook-why {
  font-size: 0.96rem;
  color: #cccccc;
  line-height: 1.7;
  margin-bottom: 12px;
}
.hook-use strong, .hook-why strong {
  color: var(--white);
}
.hook-example {
  background: rgba(255, 215, 0, 0.03);
  border-left: 2px solid var(--yellow);
  padding: 16px 20px;
  border-radius: 0 12px 12px 0;
  font-size: 1.02rem;
  color: var(--white);
  font-style: italic;
  margin-top: 16px;
}

/* 4. Timeline items and legacy steps */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  padding-left: 20px;
  border-left: 1.5px dashed rgba(255, 215, 0, 0.25);
  margin: 32px 0 32px 10px;
}
.timeline-item, .step {
  position: relative;
  padding-left: 12px;
  font-size: 1.04rem;
  color: #dddddd;
  line-height: 1.75;
  margin-bottom: 24px;
}
.timeline-item:last-child, .step:last-child {
  margin-bottom: 0;
}
.timeline-item::before, .step::before {
  content: '';
  position: absolute;
  left: -27px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 10px var(--yellow);
  z-index: 2;
}
.timeline-label {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}
.timeline-text {
  font-size: 0.96rem;
  color: #cccccc;
  line-height: 1.65;
}

/* 5. Percentages / Circular Stats */
.pct-row {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 36px 0;
}
.pct-item {
  display: flex;
  align-items: center;
  gap: 24px;
}
.pct-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 215, 0, 0.05);
  border: 2px solid var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--yellow);
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.1);
}
.pct-label {
  font-size: 0.98rem;
  color: #cccccc;
  line-height: 1.6;
}

/* 6. Custom grid styles for specific posts */
.idea-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin: 36px 0;
}
.idea-card {
  background: var(--card-glass);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 32px 28px;
  transition: transform 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}
.idea-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 215, 0, 0.2);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}
.idea-num {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--yellow);
  line-height: 1;
  margin-bottom: 12px;
}
.idea-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.idea-desc {
  font-size: 0.92rem;
  color: #b0b0b0;
  line-height: 1.65;
}

.step-card {
  background: var(--card-glass);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 28px 24px;
  margin: 20px 0;
  transition: transform 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}
.step-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 215, 0, 0.15);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.step-num {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--yellow);
  line-height: 1;
  margin-bottom: 8px;
}
.step-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.step-desc {
  font-size: 0.94rem;
  color: #cccccc;
  line-height: 1.65;
}

@media (max-width: 960px) {
  .before-after {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .format-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .pct-item {
    gap: 16px;
  }
  .idea-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}



