/* ── SiteArt Blog Layout Pro ─────────────────────────────────── */
:root {
  --sa-primary:   #6366f1;
  --sa-primary-d: #4f46e5;
  --sa-cyan:      #22d3ee;
  --sa-dark:      #0f0f1a;
  --sa-card:      #1a1a2e;
  --sa-border:    #2a2a45;
  --sa-text:      #1a1a2e;
  --sa-muted:     #6b7280;
  --sa-white:     #ffffff;
  --sa-font-h:    'Plus Jakarta Sans', sans-serif;
  --sa-font-b:    'Inter', sans-serif;
  --sa-radius:    12px;
  --sa-shadow:    0 4px 24px rgba(0,0,0,0.08);
  --sa-shadow-lg: 0 12px 48px rgba(99,102,241,0.15);
}

/* Reading Progress Bar */
#sa-progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--sa-primary), var(--sa-cyan));
  z-index: 9999; transition: width 0.1s linear;
}

/* Blog Layout Wrapper */
.sa-blog-wrap {
  max-width: 1200px; margin: 0 auto;
  padding: 48px 20px 80px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
}

/* ── Main Content ── */
.sa-blog-main {}

/* Hero Banner */
.sa-hero-banner {
  background: linear-gradient(135deg, #0f0f1a 0%, #1a1035 100%);
  border-radius: 20px; padding: 48px 40px; margin-bottom: 36px;
  position: relative; overflow: hidden;
}
.sa-hero-banner::before {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.2), transparent 70%);
}
.sa-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(99,102,241,0.15); border: 1px solid rgba(99,102,241,0.4);
  color: #818cf8; padding: 5px 14px; border-radius: 50px;
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 16px;
}
.sa-hero-badge span {
  width: 6px; height: 6px; background: var(--sa-cyan);
  border-radius: 50%; display: inline-block;
}
.sa-hero-title {
  font-family: var(--sa-font-h); font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800; color: #fff; line-height: 1.2;
  margin: 0 0 14px; letter-spacing: -0.5px;
}
.sa-hero-meta {
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,0.55);
  font-family: var(--sa-font-b);
}
.sa-hero-meta-item { display: flex; align-items: center; gap: 6px; }
.sa-hero-meta svg { width: 14px; height: 14px; }

/* Author Card */
.sa-author-card {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border: 1px solid #eee; border-radius: var(--sa-radius);
  padding: 20px 24px; margin-bottom: 28px;
  box-shadow: var(--sa-shadow);
}
.sa-author-avatar {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--sa-primary); flex-shrink: 0;
}
.sa-author-avatar-placeholder {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--sa-primary), var(--sa-cyan));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #fff; font-size: 1.1rem; flex-shrink: 0;
}
.sa-author-name {
  font-family: var(--sa-font-h); font-weight: 700; font-size: 15px; color: var(--sa-text);
}
.sa-author-role { font-size: 12px; color: var(--sa-muted); margin-top: 2px; }
.sa-author-badge {
  margin-left: auto; background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.2); color: var(--sa-primary);
  padding: 4px 12px; border-radius: 50px; font-size: 11px; font-weight: 700;
  white-space: nowrap;
}

/* Audio Player */
.sa-audio-player {
  background: linear-gradient(135deg, #f8f9ff, #eff0ff);
  border: 1px solid rgba(99,102,241,0.2); border-radius: var(--sa-radius);
  padding: 18px 22px; margin-bottom: 28px;
  display: flex; align-items: center; gap: 16px;
}
.sa-audio-play-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--sa-primary); color: #fff; border: none;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(99,102,241,0.4);
}
.sa-audio-play-btn:hover { transform: scale(1.05); box-shadow: 0 8px 24px rgba(99,102,241,0.5); }
.sa-audio-info { flex: 1; }
.sa-audio-title { font-size: 13px; font-weight: 700; color: var(--sa-text); margin-bottom: 4px; }
.sa-audio-subtitle { font-size: 11px; color: var(--sa-muted); }
.sa-audio-progress {
  flex: 1; height: 4px; background: #ddd; border-radius: 4px; cursor: pointer; overflow: hidden;
}
.sa-audio-fill { height: 100%; width: 0%; background: var(--sa-primary); border-radius: 4px; transition: width 0.3s; }
.sa-audio-time { font-size: 12px; color: var(--sa-muted); white-space: nowrap; }
.sa-audio-speed {
  background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.2);
  color: var(--sa-primary); padding: 4px 10px; border-radius: 6px;
  font-size: 12px; font-weight: 700; cursor: pointer; border: none;
  font-family: var(--sa-font-b); white-space: nowrap;
}

/* Table of Contents */
.sa-toc {
  background: #f8f9ff; border: 1px solid rgba(99,102,241,0.15);
  border-left: 4px solid var(--sa-primary);
  border-radius: var(--sa-radius); padding: 24px 28px; margin-bottom: 32px;
}
.sa-toc-title {
  font-family: var(--sa-font-h); font-size: 14px; font-weight: 800;
  color: var(--sa-text); margin-bottom: 14px; text-transform: uppercase;
  letter-spacing: 0.5px; display: flex; align-items: center; gap: 8px;
}
.sa-toc-list { list-style: none; margin: 0; padding: 0; }
.sa-toc-list li { margin-bottom: 6px; }
.sa-toc-list a {
  font-size: 13px; color: var(--sa-muted); text-decoration: none;
  font-family: var(--sa-font-b); transition: color 0.2s;
  display: flex; align-items: center; gap: 8px;
}
.sa-toc-list a::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--sa-primary); opacity: 0.4; flex-shrink: 0;
  transition: opacity 0.2s;
}
.sa-toc-list a:hover { color: var(--sa-primary); }
.sa-toc-list a:hover::before { opacity: 1; }
.sa-toc-list a.active { color: var(--sa-primary); font-weight: 600; }
.sa-toc-list a.active::before { opacity: 1; }
.sa-toc-list li.sa-toc-h3 { padding-left: 18px; }

/* Pro Tip Box */
.sa-pro-tip {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1px solid #fde68a; border-left: 4px solid #f59e0b;
  border-radius: var(--sa-radius); padding: 16px 20px; margin: 24px 0;
  font-size: 14px; color: var(--sa-text); line-height: 1.7;
}
.sa-pro-tip strong { color: #92400e; }

/* Blog Article Body */
.sa-blog-content {
  font-family: var(--sa-font-b); font-size: 16px; line-height: 1.85;
  color: var(--sa-text);
}
.sa-blog-content h2 {
  font-family: var(--sa-font-h); font-size: 1.6rem; font-weight: 800;
  color: var(--sa-text); margin: 40px 0 16px; line-height: 1.25;
  padding-bottom: 10px; border-bottom: 2px solid #f0f0ff;
  scroll-margin-top: 80px;
}
.sa-blog-content h3 {
  font-family: var(--sa-font-h); font-size: 1.2rem; font-weight: 700;
  color: var(--sa-text); margin: 28px 0 12px; scroll-margin-top: 80px;
}
.sa-blog-content h4 {
  font-family: var(--sa-font-h); font-size: 1rem; font-weight: 700;
  color: var(--sa-primary); margin: 20px 0 8px;
}
.sa-blog-content p { margin-bottom: 20px; }
.sa-blog-content a { color: var(--sa-primary); text-decoration: underline; text-underline-offset: 3px; }
.sa-blog-content img {
  max-width: 100%; border-radius: var(--sa-radius); margin: 24px 0;
  box-shadow: var(--sa-shadow);
}
.sa-blog-content ul, .sa-blog-content ol {
  margin: 0 0 20px 20px; padding: 0;
}
.sa-blog-content li { margin-bottom: 8px; line-height: 1.75; }
.sa-blog-content blockquote {
  border-left: 4px solid var(--sa-primary); margin: 24px 0;
  padding: 16px 24px; background: #f8f9ff; border-radius: 0 var(--sa-radius) var(--sa-radius) 0;
  font-style: italic; color: #374151;
}
.sa-blog-content table {
  width: 100%; border-collapse: collapse; margin: 24px 0;
  font-size: 14px; border-radius: var(--sa-radius); overflow: hidden;
  box-shadow: var(--sa-shadow);
}
.sa-blog-content th {
  background: var(--sa-primary); color: #fff; padding: 12px 16px;
  text-align: left; font-weight: 700;
}
.sa-blog-content td {
  padding: 11px 16px; border-bottom: 1px solid #f0f0f0;
}
.sa-blog-content tr:nth-child(even) td { background: #fafafa; }

/* Share Bar */
.sa-share-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 40px 0; padding: 24px; background: #f8f9ff;
  border-radius: var(--sa-radius); border: 1px solid rgba(99,102,241,0.1);
}
.sa-share-label { font-size: 13px; font-weight: 700; color: var(--sa-text); }
.sa-share-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: 50px; font-size: 13px; font-weight: 600;
  text-decoration: none; transition: transform 0.2s, box-shadow 0.2s;
  border: none; cursor: pointer; font-family: var(--sa-font-b);
}
.sa-share-btn:hover { transform: translateY(-2px); }
.sa-share-btn.twitter { background: #1da1f2; color: #fff; }
.sa-share-btn.linkedin { background: #0a66c2; color: #fff; }
.sa-share-btn.copy { background: var(--sa-primary); color: #fff; }
.sa-share-btn.whatsapp { background: #25d366; color: #fff; }

/* Related Posts */
.sa-related { margin-top: 48px; }
.sa-related-title {
  font-family: var(--sa-font-h); font-size: 1.3rem; font-weight: 800;
  color: var(--sa-text); margin-bottom: 20px; padding-bottom: 12px;
  border-bottom: 2px solid #f0f0ff;
}
.sa-related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sa-related-card {
  background: #fff; border: 1px solid #eee; border-radius: var(--sa-radius);
  overflow: hidden; text-decoration: none; color: inherit;
  transition: transform 0.2s, box-shadow 0.2s; display: block;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.sa-related-card:hover { transform: translateY(-4px); box-shadow: var(--sa-shadow); }
.sa-related-card img { width: 100%; height: 140px; object-fit: cover; }
.sa-related-card-body { padding: 16px; }
.sa-related-card-cat {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.8px; color: var(--sa-primary); margin-bottom: 6px;
}
.sa-related-card h4 {
  font-family: var(--sa-font-h); font-size: 14px; font-weight: 700;
  color: var(--sa-text); line-height: 1.45; margin: 0;
}

/* ── Sidebar ── */
.sa-blog-sidebar { position: sticky; top: 90px; }

/* Sidebar Form Card */
.sa-form-card {
  background: linear-gradient(160deg, #0f0f1a, #1a1035);
  border-radius: 20px; padding: 32px 28px;
  box-shadow: var(--sa-shadow-lg);
  border: 1px solid rgba(99,102,241,0.2);
  position: relative; overflow: hidden;
}
.sa-form-card::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.15), transparent 70%);
  pointer-events: none;
}
.sa-form-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(34,211,238,0.12); border: 1px solid rgba(34,211,238,0.3);
  color: #22d3ee; padding: 4px 12px; border-radius: 50px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.8px;
  text-transform: uppercase; margin-bottom: 14px;
}
.sa-form-title {
  font-family: var(--sa-font-h); font-size: 1.3rem; font-weight: 800;
  color: #fff; line-height: 1.3; margin-bottom: 6px;
}
.sa-form-subtitle { font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 22px; line-height: 1.6; }
.sa-form-benefits { list-style: none; padding: 0; margin: 0 0 22px; }
.sa-form-benefits li {
  font-size: 12px; color: rgba(255,255,255,0.75); display: flex;
  align-items: center; gap: 8px; margin-bottom: 8px; font-family: var(--sa-font-b);
}
.sa-form-benefits li::before {
  content: '✓'; width: 18px; height: 18px; background: rgba(34,211,238,0.15);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: var(--sa-cyan); flex-shrink: 0; font-weight: 900;
}

/* Multi-step form */
.sa-form-step { display: none; }
.sa-form-step.active { display: block; }
.sa-step-indicators {
  display: flex; gap: 6px; margin-bottom: 20px;
}
.sa-step-dot {
  flex: 1; height: 3px; border-radius: 3px;
  background: rgba(255,255,255,0.15); transition: background 0.3s;
}
.sa-step-dot.done { background: var(--sa-cyan); }
.sa-step-dot.active { background: var(--sa-primary); }

.sa-field { margin-bottom: 14px; position: relative; }
.sa-field label {
  display: block; font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,0.6); margin-bottom: 5px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.sa-field input,
.sa-field select,
.sa-field textarea {
  width: 100%; padding: 11px 14px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px; color: #fff; font-family: var(--sa-font-b);
  font-size: 14px; transition: border-color 0.2s, background 0.2s; outline: none;
  box-sizing: border-box;
}
.sa-field input::placeholder { color: rgba(255,255,255,0.35); }
.sa-field input:focus,
.sa-field select:focus {
  border-color: var(--sa-primary); background: rgba(99,102,241,0.08);
}
.sa-field select { cursor: pointer; -webkit-appearance: none; }
.sa-field select option { background: #1a1a2e; color: #fff; }
.sa-field-error {
  font-size: 11px; color: #f87171; margin-top: 4px; display: none;
}
.sa-field.has-error input,
.sa-field.has-error select { border-color: #f87171; }
.sa-field.has-error .sa-field-error { display: block; }

.sa-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.sa-btn-primary {
  width: 100%; background: linear-gradient(135deg, var(--sa-primary), #8b5cf6);
  color: #fff; border: none; padding: 14px; border-radius: 50px;
  font-family: var(--sa-font-h); font-size: 15px; font-weight: 700;
  cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 28px rgba(99,102,241,0.4); margin-top: 4px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.sa-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 40px rgba(99,102,241,0.55); }
.sa-btn-secondary {
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.15); padding: 10px; border-radius: 50px;
  font-family: var(--sa-font-b); font-size: 13px; cursor: pointer;
  width: 100%; margin-top: 8px; transition: background 0.2s;
}
.sa-btn-secondary:hover { background: rgba(255,255,255,0.12); }

/* Success State */
.sa-form-success { display: none; text-align: center; padding: 20px 0; }
.sa-form-success .sa-success-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(74,222,128,0.15); border: 2px solid #4ade80;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin: 0 auto 16px;
}
.sa-form-success h4 {
  font-family: var(--sa-font-h); font-size: 1.1rem; font-weight: 800;
  color: #fff; margin-bottom: 8px;
}
.sa-form-success p { font-size: 13px; color: rgba(255,255,255,0.65); line-height: 1.7; }
.sa-form-privacy {
  font-size: 11px; color: rgba(255,255,255,0.35); text-align: center;
  margin-top: 12px; line-height: 1.5;
}

/* Sidebar Mini TOC */
.sa-sidebar-toc {
  background: #fff; border: 1px solid #eee; border-radius: var(--sa-radius);
  padding: 20px 22px; margin-top: 24px; box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.sa-sidebar-toc-title {
  font-family: var(--sa-font-h); font-size: 13px; font-weight: 800;
  color: var(--sa-text); margin-bottom: 14px; text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sa-sidebar-toc ul { list-style: none; padding: 0; margin: 0; }
.sa-sidebar-toc li { margin-bottom: 6px; }
.sa-sidebar-toc a {
  font-size: 13px; color: var(--sa-muted); text-decoration: none;
  display: flex; align-items: flex-start; gap: 8px; line-height: 1.4;
  transition: color 0.2s; font-family: var(--sa-font-b);
}
.sa-sidebar-toc a:hover { color: var(--sa-primary); }
.sa-sidebar-toc a.active { color: var(--sa-primary); font-weight: 600; }
.sa-sidebar-toc li::before {
  content: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .sa-blog-wrap { grid-template-columns: 1fr; gap: 32px; }
  .sa-blog-sidebar { position: static; }
  .sa-related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .sa-blog-wrap { padding: 24px 16px 60px; }
  .sa-hero-banner { padding: 32px 24px; }
  .sa-hero-title { font-size: 1.5rem; }
  .sa-form-row { grid-template-columns: 1fr; }
  .sa-related-grid { grid-template-columns: 1fr; }
  .sa-audio-player { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .sa-hero-banner { padding: 24px 18px; }
  .sa-form-card { padding: 24px 18px; }
  .sa-author-card { flex-wrap: wrap; }
  .sa-author-badge { margin-left: 0; margin-top: 8px; }
}