/* Blog Details Page Specific Styles */

/* Active nav link */
.nav-link.active {
  color: #000;
  font-weight: 600;
  position: relative;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #000;
}

/* Breadcrumb */
.breadcrumb {
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  padding: 12px 0;
  font-size: 13px;
}

.breadcrumb a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: #000;
}

.breadcrumb .separator {
  margin: 0 8px;
  color: #999;
}

.breadcrumb .current {
  color: #000;
  font-weight: 500;
}

/* Blog Detail Main Layout */
.blog-detail-main {
  padding: 32px 0;
}

.blog-detail-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Blog Header */
.blog-header {
  margin-bottom: 32px;
}

.blog-title {
  font-size: 40px;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 24px;
  color: #000;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid #e9ecef;
  border-bottom: 1px solid #e9ecef;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.author-details {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-size: 14px;
  font-weight: 600;
  color: #000;
  margin-bottom: 2px;
}

.author-title {
  font-size: 12px;
  color: #666;
}

.blog-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: 12px;
  color: #666;
  font-family: "Arial", sans-serif;
}

/* Featured Image */
.blog-featured-image {
  margin-bottom: 32px;
}

.blog-featured-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border: 1px solid #e9ecef;
}

.image-caption {
  font-size: 13px;
  color: #666;
  font-style: italic;
  margin-top: 8px;
  text-align: center;
}

/* Social Share */
.social-share {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  padding: 16px 0;
  border-top: 1px solid #e9ecef;
  border-bottom: 1px solid #e9ecef;
}

.share-text {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
}

.social-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-icon.facebook {
  color: #1877f2;
}

.social-icon.facebook:hover {
  background: #1877f2;
  color: #fff;
  border-color: #1877f2;
}

.social-icon.twitter {
  color: #1da1f2;
}

.social-icon.twitter:hover {
  background: #1da1f2;
  color: #fff;
  border-color: #1da1f2;
}

.social-icon.linkedin {
  color: #0077b5;
}

.social-icon.linkedin:hover {
  background: #0077b5;
  color: #fff;
  border-color: #0077b5;
}

.social-icon.whatsapp {
  color: #25d366;
}

.social-icon.whatsapp:hover {
  background: #25d366;
  color: #fff;
  border-color: #25d366;
}

/* Blog Body */
.blog-body {
  line-height: 1.8;
  font-size: 16px;
  color: #333;
}

.blog-body .lead {
  font-size: 20px;
  font-weight: 500;
  color: #000;
  margin-bottom: 32px;
  line-height: 1.6;
}

.blog-body h2 {
  font-size: 28px;
  font-weight: bold;
  margin: 40px 0 20px 0;
  color: #000;
  border-bottom: 2px solid #000;
  padding-bottom: 8px;
}

.blog-body h3 {
  font-size: 22px;
  font-weight: bold;
  margin: 32px 0 16px 0;
  color: #000;
}

.blog-body p {
  margin-bottom: 20px;
}

.blog-body ul,
.blog-body ol {
  margin: 20px 0;
  padding-left: 24px;
}

.blog-body li {
  margin-bottom: 12px;
  line-height: 1.6;
}

.blog-body blockquote {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  padding: 24px 28px;
  margin: 32px 0;
  font-style: italic;
  font-size: 18px;
  border-radius: 8px;
  position: relative;
}

.blog-body blockquote::before {
  content: '"';
  font-size: 60px;
  position: absolute;
  top: -10px;
  left: 20px;
  opacity: 0.3;
}

.blog-body strong {
  font-weight: 600;
  color: #000;
}

/* Blog Tags */
.blog-tags {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #e9ecef;
}

.tags-label {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-right: 12px;
}

.tag {
  display: inline-block;
  background: #f8f9fa;
  color: #666;
  padding: 6px 12px;
  margin: 4px 8px 4px 0;
  font-size: 12px;
  text-decoration: none;
  border-radius: 20px;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
}

.tag:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* Author Bio */
.author-bio {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  padding: 24px;
  margin-top: 40px;
  display: flex;
  gap: 20px;
  border-radius: 8px;
}

.author-bio-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-bio-content h4 {
  font-size: 18px;
  font-weight: bold;
  color: #000;
  margin-bottom: 4px;
}

.author-bio-title {
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
  font-weight: 500;
}

.author-bio-description {
  font-size: 14px;
  color: #333;
  line-height: 1.6;
  margin-bottom: 12px;
}

.author-stats {
  font-size: 12px;
  color: #999;
  font-family: "Arial", sans-serif;
}

/* Sidebar */
.blog-detail-sidebar {
  position: sticky;
  top: 24px;
}

.sidebar-section {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  margin-bottom: 24px;
}

.sidebar-title {
  font-size: 16px;
  font-weight: bold;
  color: #000;
  padding: 16px 20px;
  margin: 0;
  border-bottom: 1px solid #e9ecef;
  background: #fff;
}

/* Table of Contents */
.toc {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: #fff;
}

.toc .sidebar-title {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.toc-list {
  list-style: none;
  padding: 20px;
  margin: 0;
}

.toc-list li {
  margin-bottom: 12px;
}

.toc-list li:last-child {
  margin-bottom: 0;
}

.toc-list a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
  display: block;
  padding: 4px 0;
}

.toc-list a:hover {
  color: #fff;
  padding-left: 8px;
}

/* Related Blogs */
.related-blogs {
  padding: 20px;
}

.related-blog {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e9ecef;
}

.related-blog:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.related-blog img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.related-content h4 {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 6px;
}

.related-content h4 a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.related-content h4 a:hover {
  color: #000;
}

.related-date {
  font-size: 11px;
  color: #999;
  font-family: "Arial", sans-serif;
}

/* Newsletter */
.newsletter {
  background: #000 !important;
  color: #fff;
}

.newsletter .sidebar-title {
  background: #000;
  color: #fff;
  border-bottom-color: #333;
}

.newsletter p {
  padding: 0 20px 16px 20px;
  margin: 0;
  font-size: 14px;
  color: #ccc;
}

.newsletter-form {
  padding: 0 20px 20px 20px;
}

.newsletter-form input {
  width: 100%;
  padding: 12px;
  border: 1px solid #333;
  background: #fff;
  font-size: 14px;
  margin-bottom: 12px;
  border-radius: 4px;
}

.newsletter-form button {
  width: 100%;
  padding: 12px;
  background: #fff;
  color: #000;
  border: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.newsletter-form button:hover {
  background: #f0f0f0;
}

/* Popular Tags */
.popular-tags {
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.popular-tag {
  display: inline-block;
  background: #fff;
  color: #666;
  padding: 6px 12px;
  font-size: 12px;
  text-decoration: none;
  border-radius: 20px;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
}

.popular-tag:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .blog-detail-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .blog-detail-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .blog-detail-main {
    padding: 24px 0;
  }

  .blog-title {
    font-size: 32px;
  }

  .blog-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .blog-info {
    align-items: flex-start;
  }

  .blog-featured-image img {
    height: 250px;
  }

  .social-share {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .blog-body {
    font-size: 15px;
  }

  .blog-body .lead {
    font-size: 18px;
  }

  .blog-body h2 {
    font-size: 24px;
  }

  .blog-body h3 {
    font-size: 20px;
  }

  .author-bio {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .blog-title {
    font-size: 28px;
  }

  .blog-featured-image img {
    height: 200px;
  }

  .social-icons {
    flex-wrap: wrap;
  }

  .social-icon {
    width: 36px;
    height: 36px;
  }

  .blog-body .lead {
    font-size: 16px;
  }

  .blog-body h2 {
    font-size: 22px;
  }

  .related-blog img {
    width: 60px;
    height: 45px;
  }
}
