/* ===== BLOG DETAIL PAGE STYLES ===== */
/* Reusing about.css content styling */

/* Main Content Section */
.blog-detail-content {
  padding: 40px 0 60px 0;
  background: #fff;
}

.blog-detail-article {
  max-width: 900px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.85;
  color: #333;
}

/* Breadcrumbs for blog detail */
.blog-detail-article .breadcrumbs {
  margin-top: 0;
  margin-bottom: 30px;
}

/* Post Title */
.blog-detail-article h1 {
  font-size: 2.2rem;
  color: var(--zz-blue);
  font-weight: 700;
  margin: 0 0 20px 0;
  font-family: var(--zz-font-family);
  line-height: 1.3;
}

/* Post Meta */
.blog-detail-article .post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--zz-blue-light);
  font-size: 0.95rem;
  color: #666;
}

.blog-detail-article .post-meta .date {
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-detail-article .post-meta .date::before {
  content: '\f073';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--zz-blue);
}

.blog-detail-article .post-meta .categories a {
  color: var(--zz-blue);
  text-decoration: none;
  transition: color 0.3s;
}

.blog-detail-article .post-meta .categories a:hover {
  color: var(--zz-blue-dark);
  text-decoration: underline;
}

/* Post Content - Same as about-article styling */
.blog-detail-article .post-content {
  margin-top: 20px;
}

.blog-detail-article .post-content h2 {
  font-size: 1.6rem;
  color: var(--zz-blue-dark);
  font-weight: 700;
  margin: 45px 0 20px 0;
  padding-left: 15px;
  border-left: 4px solid var(--zz-blue);
  font-family: var(--zz-font-family);
}

.blog-detail-article .post-content h3 {
  font-size: 1.25rem;
  color: #34495e;
  font-weight: 600;
  margin: 30px 0 15px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* .blog-detail-article .post-content h3::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--zz-blue-light), var(--zz-blue));
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: bold;
  flex-shrink: 0;
} */

.blog-detail-article .post-content p {
  color: #555;
  text-align: left;
}

.blog-detail-article .post-content strong {
  color: var(--zz-blue);
  font-weight: 600;
}

.blog-detail-article .post-content ul,
.blog-detail-article .post-content ol {
  margin: 0 0 25px 0;
  padding-left: 25px;
}

.blog-detail-article .post-content li {
  position: relative;
}

.blog-detail-article .post-content li::marker {
  color: var(--zz-blue);
}

/* Images in content */
.blog-detail-article .post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 25px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Blockquotes */
.blog-detail-article .post-content blockquote {
  background: var(--zz-blue-light);
  border-left: 4px solid var(--zz-blue);
  padding: 20px 25px;
  margin: 30px 0;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: #555;
}

/* Tables */
.blog-detail-article .post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.blog-detail-article .post-content th,
.blog-detail-article .post-content td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.blog-detail-article .post-content th {
  background: var(--zz-blue);
  color: #fff;
  font-weight: 600;
}

.blog-detail-article .post-content tr:hover {
  background: var(--zz-blue-light);
}

/* Code blocks */
.blog-detail-article .post-content code {
  background: #f4f4f4;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--zz-blue-dark);
}

.blog-detail-article .post-content pre {
  background: #2d3748;
  color: #e2e8f0;
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 25px 0;
}

.blog-detail-article .post-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

/* Featured Image */
.blog-detail-article .featured-image {
  margin-bottom: 30px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.blog-detail-article .featured-image img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Responsive */
@media (max-width: 768px) {
  /* Remove padding-top since header is already handled */
  .blog-detail-content .page-container {
    padding-top: 0;
  }
  
  /* Prevent horizontal scroll */
  .blog-detail-page {
    overflow-x: hidden;
  }
  
  .blog-detail-content {
    padding: 30px 0 40px 0;
    margin-top: 70px;
  }
  
  .blog-detail-article {
    padding: 0 15px;
    overflow-x: hidden;
  }
  
  .blog-detail-article h1 {
    font-size: 1.6rem;
  }
  
  .blog-detail-article .post-meta {
    flex-direction: column;
    gap: 10px;
  }
  
  .blog-detail-article .post-content h2 {
    font-size: 1.3rem;
    margin: 35px 0 15px 0;
  }
  
  .blog-detail-article .post-content h3 {
    font-size: 1.1rem;
  }
  
  .blog-detail-article .post-content h3::before {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
  
  /* Responsive table - horizontal scroll */
  .blog-detail-article .post-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 0.85rem;
  }
  
  .blog-detail-article .post-content th,
  .blog-detail-article .post-content td {
    padding: 8px 10px;
    font-size: 0.8rem;
    white-space: nowrap;
  }
  
  .blog-detail-article .post-content img {
    max-width: 100%;
    height: auto;
  }
}

/* ===== RELATED POSTS SECTION ===== */
.related-posts-section {
  padding: 60px 0 80px 0;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border-top: 1px solid #e5e7eb;
}

.related-posts-title {
  font-size: 1.8rem;
  color: var(--zz-blue-dark);
  font-weight: 700;
  text-align: center;
  margin: 0 0 40px 0;
  font-family: 'Philosopher', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.related-posts-title i {
  color: var(--zz-blue);
  font-size: 1.5rem;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .related-posts-section {
    padding: 0 0 60px 0;
  }
  
  .related-posts-title {
    font-size: 1.4rem;
    margin-bottom: 30px;
  }
  
  .related-posts-section .post-grid {
    grid-template-columns: 1fr;
  }
}
