/* ============================================================
   RadarTrade Blog — Stylesheet
   Professional editorial design for SEO blog
   ============================================================ */

/* -------------------------------------------------------
   1. Blog Layout Variables
   ------------------------------------------------------- */
:root {
  --blog-max-width: 1200px;
  --blog-content-width: 720px;
  --blog-reading-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* -------------------------------------------------------
   2. Reading Progress Bar
   ------------------------------------------------------- */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-600), var(--cyan-500, #06b6d4));
  z-index: 9999;
  transition: width 0.1s linear;
}

/* -------------------------------------------------------
   3. Blog Hero
   ------------------------------------------------------- */
.blog-hero {
  padding: 110px 0 50px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1d4ed8 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.blog-hero h1 {
  font-size: 2.75rem;
  font-weight: 900;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.blog-hero .hero-subtitle {
  font-size: 1.15rem;
  opacity: 0.85;
  max-width: 560px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

/* Search bar */
.blog-search-wrapper {
  max-width: 520px;
  margin: 0 auto;
  position: relative;
}
.blog-search-wrapper input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.9375rem;
  outline: none;
  transition: all 0.3s ease;
}
.blog-search-wrapper input::placeholder {
  color: rgba(255,255,255,0.5);
}
.blog-search-wrapper input:focus {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.15);
}
.blog-search-wrapper .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.5);
  pointer-events: none;
}

/* -------------------------------------------------------
   4. Category Filter
   ------------------------------------------------------- */
.blog-categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 24px 24px 0;
  max-width: var(--blog-max-width);
  margin: 0 auto;
}
.category-chip {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.category-chip:hover {
  border-color: var(--blue-500, #3b82f6);
  color: var(--blue-600, #2563eb);
  background: #eff6ff;
}
.category-chip.active {
  background: var(--blue-600, #2563eb);
  color: #fff;
  border-color: var(--blue-600, #2563eb);
}

/* -------------------------------------------------------
   5. Blog Grid (Listing)
   ------------------------------------------------------- */
.blog-section {
  padding: 40px 0 80px;
  min-height: 500px;
  background: #f8fafc;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: var(--blog-max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.blog-results-info {
  max-width: var(--blog-max-width);
  margin: 0 auto 20px;
  padding: 0 24px;
  font-size: 0.875rem;
  color: #64748b;
}

/* -------------------------------------------------------
   6. Blog Card
   ------------------------------------------------------- */
.blog-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}
.blog-card-image {
  height: 200px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}
.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}
.blog-card-image .card-category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(37,99,235,0.9);
  color: #fff;
  backdrop-filter: blur(4px);
}
.blog-card-body {
  padding: 20px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 10px;
}
.blog-card-meta .reading-time {
  display: flex;
  align-items: center;
  gap: 4px;
}
.blog-card-body h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #0f172a;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-body .card-excerpt {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--blue-600, #2563eb);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
  margin-top: auto;
}
.blog-card-link:hover {
  gap: 8px;
}

/* -------------------------------------------------------
   7. Pagination
   ------------------------------------------------------- */
.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  padding: 0 24px;
}
.blog-pagination button {
  min-width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-pagination button:hover:not(:disabled) {
  border-color: var(--blue-500, #3b82f6);
  color: var(--blue-600, #2563eb);
  background: #eff6ff;
}
.blog-pagination button.active {
  background: var(--blue-600, #2563eb);
  color: #fff;
  border-color: var(--blue-600, #2563eb);
}
.blog-pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* -------------------------------------------------------
   8. Blog Post Detail — Hero
   ------------------------------------------------------- */
.post-hero {
  padding: 100px 0 40px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1d4ed8 100%);
  color: #fff;
}
.post-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}
.post-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  margin-bottom: 24px;
  opacity: 0.7;
}
.post-breadcrumb a {
  color: #fff;
  transition: opacity 0.2s;
}
.post-breadcrumb a:hover {
  opacity: 0.9;
}
.post-breadcrumb .separator {
  font-size: 0.625rem;
}
.post-hero .post-category-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  margin-bottom: 16px;
}
.post-hero h1 {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: #fff !important;
}
.post-hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8125rem;
  opacity: 0.8;
  flex-wrap: wrap;
}
.post-hero-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* -------------------------------------------------------
   9. Post Featured Image
   ------------------------------------------------------- */
.post-featured-image {
  max-width: 900px;
  margin: -20px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}
.post-featured-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.15);
}

/* -------------------------------------------------------
   10. Post Content Layout
   ------------------------------------------------------- */
.post-content-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 48px;
  align-items: start;
}

/* -------------------------------------------------------
   11. Table of Contents (Sticky Sidebar)
   ------------------------------------------------------- */
.post-toc {
  position: sticky;
  top: 90px;
  padding: 20px 0;
}
.post-toc-title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
  margin-bottom: 12px;
}
.post-toc-list {
  list-style: none;
}
.post-toc-list li {
  margin-bottom: 6px;
}
.post-toc-list a {
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.5;
  display: block;
  padding: 4px 0 4px 12px;
  border-left: 2px solid transparent;
  transition: all 0.2s ease;
}
.post-toc-list a:hover,
.post-toc-list a.active {
  color: var(--blue-600, #2563eb);
  border-left-color: var(--blue-600, #2563eb);
}
.post-toc-list .toc-h3 {
  padding-left: 24px;
  font-size: 0.75rem;
}

/* -------------------------------------------------------
   12. Post Content — Typography
   ------------------------------------------------------- */
.post-content {
  min-width: 0;
}

/* Key Takeaways */
.post-key-takeaways {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border: 1px solid #dbeafe;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 36px;
}
.post-key-takeaways h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blue-600, #2563eb);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.post-key-takeaways ul {
  list-style: none;
  padding: 0;
}
.post-key-takeaways li {
  font-size: 0.9375rem;
  color: #334155;
  line-height: 1.6;
  padding: 4px 0 4px 24px;
  position: relative;
}
.post-key-takeaways li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: #22c55e;
  font-weight: 700;
}

/* Article body text */
.post-content p {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: #334155;
  margin-bottom: 20px;
}
.post-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin: 48px 0 16px;
  padding-top: 8px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  scroll-margin-top: 80px;
}
.post-content h3 {
  font-size: 1.1875rem;
  font-weight: 700;
  color: #1e293b;
  margin: 32px 0 12px;
  line-height: 1.4;
  scroll-margin-top: 80px;
}
.post-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #334155;
  margin: 24px 0 8px;
}
.post-content ul,
.post-content ol {
  margin: 0 0 20px 0;
  padding-left: 24px;
}
.post-content ul {
  list-style: disc;
}
.post-content ol {
  list-style: decimal;
}
.post-content li {
  font-size: 1rem;
  line-height: 1.8;
  color: #334155;
  margin-bottom: 6px;
}
.post-content strong {
  font-weight: 700;
  color: #0f172a;
}
.post-content a {
  color: var(--blue-600, #2563eb);
  text-decoration: underline;
  text-decoration-color: rgba(37,99,235,0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}
.post-content a:hover {
  text-decoration-color: var(--blue-600, #2563eb);
}

/* Tables */
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.9375rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}
.post-content thead {
  background: #f1f5f9;
}
.post-content th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  color: #0f172a;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.post-content td {
  padding: 12px 16px;
  border-top: 1px solid #f1f5f9;
  color: #334155;
}
.post-content tbody tr:hover {
  background: #f8fafc;
}

/* Code inline */
.post-content code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.875em;
  color: #be185d;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

/* Code blocks */
.post-content pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 20px 24px;
  border-radius: 10px;
  overflow-x: auto;
  margin: 24px 0;
  font-size: 0.875rem;
  line-height: 1.7;
}
.post-content pre code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: inherit;
}

/* Blockquote */
.post-content blockquote {
  border-left: 4px solid var(--blue-600, #2563eb);
  padding: 16px 20px;
  margin: 24px 0;
  background: #f8fafc;
  border-radius: 0 8px 8px 0;
  color: #334155;
  font-style: italic;
}
.post-content blockquote p {
  margin-bottom: 0;
}

/* Images in content */
.post-content img {
  max-width: 100%;
  border-radius: 10px;
  margin: 24px 0;
}

/* -------------------------------------------------------
   13. Highlight Boxes
   ------------------------------------------------------- */
.highlight-box {
  padding: 20px 24px;
  border-radius: 10px;
  margin: 24px 0;
  border-left: 4px solid;
  font-size: 0.9375rem;
  line-height: 1.7;
}
.highlight-box p {
  margin-bottom: 0 !important;
  font-size: 0.9375rem !important;
}
.highlight-box strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.highlight-box.tip {
  background: #f0fdf4;
  border-color: #22c55e;
  color: #166534;
}
.highlight-box.warning {
  background: #fffbeb;
  border-color: #f59e0b;
  color: #92400e;
}
.highlight-box.info {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1e40af;
}
.highlight-box.example {
  background: #faf5ff;
  border-color: #8b5cf6;
  color: #5b21b6;
}

/* -------------------------------------------------------
   14. FAQ Section
   ------------------------------------------------------- */
.post-faq {
  margin: 48px 0 36px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.post-faq-title {
  font-size: 1.25rem;
  font-weight: 800;
  padding: 24px 24px 0;
  color: #0f172a;
  margin-bottom: 8px;
}
.faq-item {
  border-top: 1px solid #f1f5f9;
}
.faq-item:first-of-type {
  border-top: none;
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 18px 24px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1e293b;
  background: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background 0.2s;
}
.faq-question:hover {
  background: #f8fafc;
}
.faq-question .faq-icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: #94a3b8;
  font-size: 1.25rem;
  font-weight: 300;
}
.faq-item.open .faq-question .faq-icon {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.open .faq-answer {
  max-height: 600px;
}
.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #475569;
}

/* -------------------------------------------------------
   15. CTA Editorial Banner
   ------------------------------------------------------- */
.post-cta-banner {
  background: linear-gradient(135deg, #1e3a5f 0%, #1d4ed8 100%);
  border-radius: 14px;
  padding: 36px 32px;
  margin: 48px 0;
  color: #fff;
  text-align: center;
}
.post-cta-banner h3 {
  font-size: 1.375rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #fff;
}
.post-cta-banner p {
  font-size: 0.9375rem;
  opacity: 0.85;
  margin-bottom: 20px;
  color: #fff !important;
}
.post-cta-banner .cta-btn {
  display: inline-block;
  padding: 12px 32px;
  background: #fff;
  color: #1d4ed8;
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.post-cta-banner .cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  text-decoration: none;
}

/* -------------------------------------------------------
   16. Related Articles
   ------------------------------------------------------- */
.post-related {
  margin-top: 60px;
  padding-top: 48px;
  border-top: 1px solid #e2e8f0;
}
.post-related h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 24px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.related-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.related-card-img {
  height: 140px;
  overflow: hidden;
  background: #eff6ff;
}
.related-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.related-card-body {
  padding: 16px;
}
.related-card-body .related-category {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--blue-600, #2563eb);
  margin-bottom: 6px;
}
.related-card-body h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* -------------------------------------------------------
   17. Share Buttons
   ------------------------------------------------------- */
.post-share {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 32px 0;
}
.post-share-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #64748b;
}
.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.875rem;
}
.share-btn:hover {
  background: var(--blue-600, #2563eb);
  color: #fff;
  border-color: var(--blue-600, #2563eb);
}

/* -------------------------------------------------------
   18. Updated Date Badge
   ------------------------------------------------------- */
.post-updated-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  background: #f0fdf4;
  color: #166534;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 24px;
}

/* -------------------------------------------------------
   19. Blog CTA Section (bottom of listing)
   ------------------------------------------------------- */
.blog-cta-section {
  padding: 80px 24px;
  text-align: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  color: #fff;
}
.blog-cta-section h2 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.blog-cta-section p {
  font-size: 1.0625rem;
  opacity: 0.8;
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.blog-cta-section .cta-btn {
  display: inline-block;
  padding: 14px 36px;
  background: #fff;
  color: #1d4ed8;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.blog-cta-section .cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

/* -------------------------------------------------------
   20. Loading & Empty States
   ------------------------------------------------------- */
.blog-loading {
  text-align: center;
  padding: 80px 24px;
  color: #94a3b8;
}
.blog-loading .spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e2e8f0;
  border-top-color: var(--blue-600, #2563eb);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.blog-empty {
  text-align: center;
  padding: 80px 24px;
  color: #94a3b8;
}
.blog-empty h3 {
  color: #0f172a;
  margin: 16px 0 8px;
  font-size: 1.25rem;
}

/* -------------------------------------------------------
   21. Responsive
   ------------------------------------------------------- */
@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .post-content-wrapper {
    grid-template-columns: 1fr;
  }
  .post-toc {
    position: static;
    background: #f8fafc;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 32px;
    order: -1;
  }
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-hero h1 {
    font-size: 2rem;
  }
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .post-hero h1 {
    font-size: 1.75rem;
  }
  .post-featured-image img {
    height: 240px;
  }
  .post-content-wrapper {
    padding: 24px 16px 60px;
  }
  .post-cta-banner {
    padding: 28px 20px;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
  .blog-cta-section h2 {
    font-size: 1.5rem;
  }
  .post-content h2 {
    font-size: 1.3rem;
  }
  .post-content h3 {
    font-size: 1.0625rem;
  }
  .post-hero-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .blog-hero {
    padding: 90px 0 40px;
  }
  .blog-categories {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }
  .blog-card-image {
    height: 180px;
  }
}

/* -------------------------------------------------------
   22. Image Fallback Placeholder
   ------------------------------------------------------- */
.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 3.5rem;
  background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
}

/* -------------------------------------------------------
   23. Comments Section
   ------------------------------------------------------- */
.comments-section {
  margin: 48px 0;
  padding-top: 32px;
  border-top: 1px solid #e2e8f0;
}
.comments-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.comments-count {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 10px;
  border-radius: 12px;
}
.comment-form {
  margin-bottom: 32px;
}
.comment-form textarea {
  width: 100%;
  min-height: 100px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.9375rem;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.comment-form textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.comment-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}
.comment-submit-btn {
  padding: 10px 24px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.comment-submit-btn:hover {
  background: #1d4ed8;
}
.comment-submit-btn:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}
.comment-login-prompt {
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 32px;
  text-align: center;
  margin-bottom: 32px;
}
.comment-login-prompt h4 {
  font-size: 1.125rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}
.comment-login-prompt p {
  color: #64748b;
  font-size: 0.875rem;
  margin-bottom: 16px;
}
.comment-login-btn {
  display: inline-block;
  padding: 10px 28px;
  background: #2563eb;
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: background 0.2s;
}
.comment-login-btn:hover {
  background: #1d4ed8;
  color: #fff;
}
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.comment-item {
  padding: 20px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  transition: box-shadow 0.2s;
}
.comment-item:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.comment-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8125rem;
  flex-shrink: 0;
}
.comment-author {
  font-weight: 700;
  font-size: 0.875rem;
  color: #0f172a;
}
.comment-date {
  font-size: 0.75rem;
  color: #94a3b8;
}
.comment-content {
  font-size: 0.9375rem;
  color: #334155;
  line-height: 1.7;
}
.comments-empty {
  text-align: center;
  padding: 24px;
  color: #94a3b8;
  font-size: 0.875rem;
}

/* -------------------------------------------------------
   24. Category Badge Colors
   ------------------------------------------------------- */
.card-category-badge[data-cat="precificacao"] { background: rgba(37,99,235,0.85); }
.card-category-badge[data-cat="monitoramento"] { background: rgba(22,163,74,0.85); }
.card-category-badge[data-cat="marketplaces"] { background: rgba(217,119,6,0.85); }
.card-category-badge[data-cat="seo"] { background: rgba(147,51,234,0.85); }
.card-category-badge[data-cat="google-ads"] { background: rgba(220,38,38,0.85); }
.card-category-badge[data-cat="marketing"] { background: rgba(79,70,229,0.85); }
.card-category-badge[data-cat="gestao"] { background: rgba(13,148,136,0.85); }
.card-category-badge[data-cat="tecnologia-e-ia"] { background: rgba(124,58,237,0.85); }
.card-category-badge[data-cat="analytics"] { background: rgba(5,150,105,0.85); }

/* -------------------------------------------------------
   25. Improved Content Typography
   ------------------------------------------------------- */
.post-content h2 {
  border-left: 3px solid #3b82f6;
  padding-left: 14px;
}
