/* ===== BLOG STYLES — WHITE CONTENT + DARK CARDS + SCROLL ANIMATIONS ===== */

/* ===== SCROLL REVEAL ANIMATION ===== */
@keyframes revealUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes revealLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes revealRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes revealScale {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.reveal {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.reveal-up { transform: translateY(40px); }
.reveal.reveal-left { transform: translateX(-30px); }
.reveal.reveal-right { transform: translateX(30px); }
.reveal.reveal-scale { transform: scale(0.92); }

.reveal.revealed {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.revealed > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.revealed > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.revealed > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.revealed > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.revealed > *:nth-child(6) { transition-delay: 0.4s; }
.reveal-stagger.revealed > * {
  opacity: 0;
  transform: translateY(25px);
}
.reveal-stagger.revealed > * {
  opacity: 1;
  transform: translateY(0);
}

/* ===== HERO — STAYS DARK ===== */
.blog-hero {
  padding: 50px 0 40px;
  border-bottom: none;
  background: linear-gradient(160deg, rgba(0,212,170,0.06) 0%, transparent 60%);
  position: relative;
}
.blog-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,212,170,0.3), transparent);
}
.blog-breadcrumb {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.blog-breadcrumb a { color: var(--text-muted); }
.blog-breadcrumb a:hover { color: var(--primary); }
.blog-breadcrumb span { margin: 0 6px; }
.blog-meta-top { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:16px; }
.blog-tag {
  background: rgba(0,212,170,0.12);
  border: 1px solid rgba(0,212,170,0.25);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.blog-read-time { font-size:0.82rem; color:var(--text-muted); align-self:center; }
.blog-hero h1 {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 16px;
  max-width: 800px;
}
.blog-lead {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.7;
  max-width: 720px;
  margin-bottom: 24px;
}
.blog-author-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.blog-author-info { display:flex; flex-direction:column; gap:2px; }
.blog-author-info span { font-size:0.85rem; color:var(--text-light); }
.blog-date { color:var(--text-muted) !important; font-size:0.8rem !important; }

/* ===== WHITE CONTENT ZONE ===== */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  padding-top: 0;
  padding-bottom: 80px;
  align-items: start;
}

/* White wrapper around the article */
.blog-content {
  min-width: 0;
  background: #ffffff;
  border-radius: 0 0 20px 20px;
  padding: 40px 44px;
  margin-top: -1px;
  box-shadow: 0 4px 40px rgba(0,0,0,0.12);
  position: relative;
}
/* Subtle top accent line */
.blog-content::before {
  content: '';
  position: absolute;
  top: 0; left: 40px; right: 40px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--primary), #0891B2, var(--primary));
}

/* White-bg text colors */
.blog-content h2 {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: #0f172a;
  margin: 40px 0 14px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}
.blog-content h2:first-of-type { border-top: none; margin-top: 0; padding-top: 0; }
.blog-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e293b;
  margin: 24px 0 10px;
}
.blog-content p {
  color: #374151;
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 0.97rem;
}
.blog-content ul, .blog-content ol {
  color: #374151;
  padding-left: 20px;
  margin-bottom: 16px;
}
.blog-content li { margin-bottom: 8px; line-height: 1.65; font-size: 0.95rem; color: #374151; }
.blog-content em { color: #6b7280; font-style: italic; }
.blog-content a { color: #0891B2; text-decoration: underline; }
.blog-content a:hover { color: var(--primary); }
.blog-content strong { color: #0f172a; }

/* ===== TOC — DARK GLASS CARD ===== */
.blog-toc {
  background: #0C1A22;
  border: 1px solid rgba(0,212,170,0.2);
  border-radius: 14px;
  padding: 22px 26px;
  margin-bottom: 36px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.blog-toc h4 { color: var(--primary); font-size:0.85rem; text-transform:uppercase; letter-spacing:0.5px; margin-bottom:12px; }
.blog-toc ol { padding-left:18px; margin:0; }
.blog-toc li { margin-bottom:6px; }
.blog-toc a { color:rgba(240,249,255,0.7); text-decoration:none; font-size:0.9rem; transition: color 0.2s; }
.blog-toc a:hover { color:var(--primary); }

/* ===== KEY FACTS — DARK CARD ===== */
.blog-key-facts {
  background: #0C1A22;
  border: 1px solid rgba(0,212,170,0.2);
  border-radius: 14px;
  padding: 20px 24px;
  margin: 20px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.blog-key-facts h4 { color: #f0f9ff; font-size:0.9rem; margin-bottom:10px; }
.blog-key-facts ul { padding-left:0; list-style:none; margin:0; }
.blog-key-facts li { font-size:0.88rem; color:rgba(240,249,255,0.7); padding:5px 0; border-bottom:1px solid rgba(255,255,255,0.06); }
.blog-key-facts li:last-child { border-bottom:none; }
.blog-key-facts strong { color: var(--primary); }

/* ===== BENEFIT GRID — DARK CARDS ===== */
.blog-benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 20px 0;
}
.blog-benefit-card {
  background: #0C1A22;
  border: 1px solid rgba(0,212,170,0.15);
  border-radius: 14px;
  padding: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.blog-benefit-card:hover {
  border-color: rgba(0,212,170,0.35);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.3), 0 0 20px rgba(0,212,170,0.1);
}
.benefit-icon { font-size: 1.5rem; margin-bottom: 8px; }
.blog-benefit-card h4 { color: #f0f9ff; font-size:0.92rem; margin-bottom:6px; }
.blog-benefit-card p { color: rgba(240,249,255,0.65); font-size:0.82rem; margin:0; line-height:1.5; }

/* ===== CHECK LIST on white bg ===== */
.blog-check-list { list-style:none; padding-left:0; }
.blog-check-list li { padding-left:26px; position:relative; margin-bottom:10px; color:#374151; }
.blog-check-list li::before { content:'✓'; position:absolute; left:0; color:var(--primary); font-weight:700; font-size:1rem; }
.blog-check-list li strong { color: #0f172a; }

/* ===== COMPARE TABLE ===== */
.blog-compare-table { overflow-x:auto; margin:20px 0; }
.blog-compare-table table { width:100%; border-collapse:collapse; font-size:0.9rem; border-radius:12px; overflow:hidden; }
.blog-compare-table th { background:#0C1A22; color:var(--primary); padding:12px 14px; text-align:left; font-weight:700; }
.blog-compare-table td { padding:10px 14px; border-bottom:1px solid #e5e7eb; color:#374151; background:#fff; }
.blog-compare-table tr:last-child td { border-bottom:none; }

/* ===== CALLOUTS on white bg ===== */
.blog-callout {
  border-radius: 12px;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 0.9rem;
  line-height: 1.6;
}
.blog-callout.warning {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  color: #92400e;
}
.blog-callout.warning strong { color: #78350f; }
.blog-callout.info {
  background: #ecfdf5;
  border: 1px solid #10b981;
  color: #065f46;
}

/* ===== FAQ — DARK CARDS ===== */
.blog-faq-list { display:flex; flex-direction:column; gap:14px; }
.blog-faq-item {
  background: #0C1A22;
  border: 1px solid rgba(0,212,170,0.15);
  border-radius: 14px;
  padding: 20px 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: all 0.25s;
}
.blog-faq-item:hover { border-color: rgba(0,212,170,0.3); }
.blog-faq-item h3 { color: #f0f9ff; font-size:1rem; margin-bottom:8px; }
.blog-faq-item p { color:rgba(240,249,255,0.7); font-size:0.9rem; margin:0; line-height:1.6; }
.blog-faq-item a { color:var(--primary); }

/* ===== PRODUCT CTA — DARK ===== */
.blog-product-cta {
  display: flex;
  gap: 24px;
  align-items: center;
  background: #0C1A22;
  border: 1px solid rgba(0,212,170,0.2);
  border-radius: 16px;
  padding: 24px;
  margin: 40px 0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}
.blog-product-cta img { width:100px; height:100px; object-fit:contain; border-radius:10px; flex-shrink:0; background:rgba(0,212,170,0.05); padding:8px; }
.blog-product-cta h3 { color:#f0f9ff; font-size:1.1rem; margin-bottom:6px; }
.blog-product-cta p { color:rgba(240,249,255,0.6); font-size:0.85rem; margin-bottom:14px; }

/* ===== RELATED — DARK CARDS ===== */
.blog-related { margin-top:48px; }
.blog-related h3 { color:#0f172a; font-size:1.1rem; margin-bottom:16px; }
.blog-related-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.blog-related-card {
  background: #0C1A22;
  border: 1px solid rgba(0,212,170,0.15);
  border-radius: 14px;
  padding: 18px;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.blog-related-card:hover { border-color:rgba(0,212,170,0.3); transform:translateY(-3px); }
.related-tag { font-size:0.72rem; color:var(--primary); font-weight:700; text-transform:uppercase; }
.blog-related-card h4 { color:#f0f9ff; font-size:0.88rem; margin-top:6px; line-height:1.4; }

/* ===== SIDEBAR — DARK CARDS (sticky) ===== */
.blog-sidebar { position:sticky; top:90px; display:flex; flex-direction:column; gap:20px; padding-top:40px; }
.sidebar-card {
  background: #0C1A22;
  border: 1px solid rgba(0,212,170,0.15);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.sidebar-card h4 { color:#f0f9ff; font-size:0.92rem; font-weight:700; margin-bottom:12px; }
.sidebar-tags { display:flex; flex-wrap:wrap; gap:6px; }
.sidebar-tags span {
  background:rgba(0,212,170,0.1);
  border:1px solid rgba(0,212,170,0.2);
  color:var(--primary);
  font-size:0.72rem;
  padding:3px 9px;
  border-radius:20px;
}
.sidebar-links { list-style:none; padding:0; margin:0; }
.sidebar-links li { border-bottom:1px solid rgba(255,255,255,0.06); }
.sidebar-links li:last-child { border-bottom:none; }
.sidebar-links a { display:block; padding:8px 0; color:rgba(240,249,255,0.7); font-size:0.88rem; text-decoration:none; transition:color 0.2s; }
.sidebar-links a:hover { color:var(--primary); }

/* ===== BLOG INDEX PAGE ===== */
.blog-index-hero { padding:60px 0 40px; text-align:center; }
.blog-index-hero h1 { font-size:2.5rem; font-weight:800; color:var(--text); margin-bottom:12px; }
.blog-index-hero p { color:var(--text-light); font-size:1.05rem; max-width:580px; margin:0 auto; }
.blog-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(320px,1fr)); gap:24px; padding:48px 0; }
.blog-card {
  background: #0C1A22;
  border: 1px solid rgba(0,212,170,0.12);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.blog-card:hover { border-color:rgba(0,212,170,0.3); transform:translateY(-5px); box-shadow:0 12px 40px rgba(0,0,0,0.4), 0 0 24px rgba(0,212,170,0.08); }
.blog-card-img { width:100%; height:180px; object-fit:cover; background:rgba(0,212,170,0.05); }
.blog-card-body { padding:20px; }
.blog-card-body .blog-tag { margin-bottom:10px; display:inline-block; }
.blog-card-body h3 { color:#f0f9ff; font-size:1.05rem; font-weight:700; line-height:1.4; margin-bottom:8px; }
.blog-card-body p { color:rgba(240,249,255,0.6); font-size:0.85rem; line-height:1.5; margin-bottom:12px; }
.blog-card-meta { font-size:0.78rem; color:rgba(240,249,255,0.4); }

/* ===== RESPONSIVE ===== */
@media (max-width:900px) {
  .blog-layout { grid-template-columns:1fr; }
  .blog-sidebar { position:static; padding-top:0; }
  .blog-related-grid { grid-template-columns:1fr 1fr; }
  .blog-benefit-grid { grid-template-columns:1fr 1fr; }
  .blog-content { padding: 28px 24px; }
}
@media (max-width:600px) {
  .blog-hero h1 { font-size:1.6rem; }
  .blog-related-grid { grid-template-columns:1fr; }
  .blog-benefit-grid { grid-template-columns:1fr; }
  .blog-product-cta { flex-direction:column; text-align:center; }
  .blog-content { padding: 24px 18px; border-radius: 0 0 16px 16px; }
}
