/* ===== BLOG STYLES ===== */

/* Blog Post */
.blog-post {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px 60px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.blog-post .breadcrumb {
  font-size: 13px;
  color: #888;
  margin-top: 20px;
  margin-bottom: 8px;
}
.blog-post .breadcrumb a {
  color: #00b8d4;
  text-decoration: none;
}
.blog-post .breadcrumb a:hover { text-decoration: underline; }

.blog-post h1 {
  font-size: 34px;
  color: #1a1a2e;
  margin: 12px 0 8px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.blog-post .post-meta {
  font-size: 14px;
  color: #999;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.blog-post h2 {
  font-size: 20px;
  color: #1a1a2e;
  margin: 32px 0 10px;
  font-weight: 700;
  line-height: 1.3;
}

.blog-post h3 {
  font-size: 17px;
  color: #333;
  margin: 24px 0 8px;
  font-weight: 600;
}

.blog-post p {
  font-size: 16px;
  color: #444;
  line-height: 1.85;
  margin-bottom: 18px;
}

.blog-post a { color: #00b8d4; font-weight: 600; text-decoration: none; }
.blog-post a:hover { text-decoration: underline; }

.blog-post ul, .blog-post ol {
  margin: 0 0 20px 20px;
  color: #444;
  line-height: 1.85;
  padding-left: 4px;
}

.blog-post li {
  margin-bottom: 8px;
  font-size: 16px;
}

.blog-post li strong { color: #222; }

/* Step Numbers */
.step-num {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 13px;
  color: #fff !important;
  background: #00b8d4 !important;
  margin-right: 6px;
  vertical-align: middle;
  flex-shrink: 0;
}

/* CTA Box */
.cta-box {
  background: linear-gradient(135deg, #00b8d4, #0088a3);
  color: #fff;
  padding: 32px;
  border-radius: 14px;
  text-align: center;
  margin: 36px 0;
}
.cta-box h3 {
  color: #fff !important;
  margin: 0 0 8px !important;
  font-size: 22px;
}
.cta-box p {
  color: rgba(255,255,255,.9) !important;
  margin-bottom: 18px;
  font-size: 16px;
}
.cta-box a {
  display: inline-block;
  background: #fff !important;
  color: #0088a3 !important;
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none !important;
  font-size: 15px;
  transition: opacity .2s;
}
.cta-box a:hover { opacity: .9; text-decoration: none !important; }

/* Blog Images */
.blog-post img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid #e8e8e8;
  margin: 16px 0 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.blog-post .img-caption {
  text-align: center;
  font-size: 13px;
  color: #888;
  margin: -16px 0 24px;
  font-style: italic;
}

/* Video Embed */
.video-embed {
  margin: 28px 0;
  border-radius: 12px;
  overflow: hidden;
  background: #f8f9fa;
  border: 2px dashed #ddd;
  text-align: center;
  padding: 30px 20px;
  color: #888;
  font-size: 15px;
}

/* Tool Comparison Cards */
.tool-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 16px 0;
  transition: box-shadow .2s;
}
.tool-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.tool-card h3 {
  display: block;
  margin: 0 0 2px;
  font-size: 18px;
  color: #1a1a2e;
  font-weight: 700;
  line-height: 1.3;
}
.tool-card .tool-rating {
  display: block;
  color: #f9a825;
  font-size: 13px;
  margin-bottom: 8px;
  letter-spacing: 1px;
}
.tool-card p {
  display: block;
  margin: 0;
  font-size: 14px;
  color: #555;
  line-height: 1.65;
}
.tool-card .tool-tags {
  margin-top: 14px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tool-card .tool-tag {
  background: #f0f0f0;
  color: #555;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
}
.tool-card:first-of-type {
  border-color: #00b8d4;
  border-width: 2px;
  background: #f0fdff;
}
.tool-card:first-of-type .tool-tag {
  background: #e0f7fa;
  color: #00838f;
}

/* Tables */
.blog-post table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #eee;
}
.blog-post th {
  background: #f0f4f8;
  padding: 12px 14px;
  text-align: left;
  font-weight: 700;
  color: #333;
  border-bottom: 2px solid #ddd;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.blog-post td {
  padding: 12px 14px;
  border-bottom: 1px solid #f0f0f0;
  color: #555;
}
.blog-post tr:last-child td { border-bottom: none; }
.blog-post tr:hover td { background: #fafafa; }

/* Related Posts */
.related-posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.related-card {
  background: #f8f9fa;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 18px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s, transform .2s;
}
.related-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  transform: translateY(-2px);
}
.related-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 6px;
}
.related-card-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

/* Blog Index */
.blog-hero {
  text-align: center;
  padding: 40px 0 24px;
}
.blog-hero h1 {
  font-size: 34px;
  color: #1a1a2e;
  margin-bottom: 10px;
  font-weight: 800;
}
.blog-hero p {
  font-size: 16px;
  color: #666;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 28px;
}
.blog-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  border: 1px solid #eee;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
  color: inherit;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.1);
}
.blog-card-img {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}
.blog-card-body { padding: 20px 22px; }
.blog-card-tag {
  display: inline-block;
  background: #e0f7fa;
  color: #00838f;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.blog-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 8px;
  line-height: 1.35;
}
.blog-card-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}
.blog-card-meta {
  font-size: 12px;
  color: #aaa;
  margin-top: 14px;
}

/* Mobile */
@media (max-width: 640px) {
  .blog-post h1 { font-size: 26px; }
  .blog-post h2 { font-size: 20px; margin-top: 32px; }
  .blog-post p { font-size: 15px; }
  .blog-hero h1 { font-size: 26px; }
  .blog-grid { grid-template-columns: 1fr; }
  .tool-card { padding: 16px; }
  .cta-box { padding: 24px 18px; }
}
