﻿.blog-detail-page {
  padding: 0 0 72px;
  background: #fff;
  margin-top:20px;
}

.bd-article-wrap {
  max-width: 780px;
  margin: 0 auto;
}

.bd-article-badge {
  display: inline-block;
  background: rgba(214, 64, 69, 0.12);
  color: #d64045;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
}

.bd-article-title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 24px;
  color: #1a1a2e;
}

.bd-article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.bd-author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bd-author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #1a1a2e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.bd-author-name {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a2e;
}

.bd-meta-item {
  color: #8b8b9f;
  font-size: 14px;
}

.bd-meta-item i {
  margin-right: 6px;
}

.bd-share-buttons {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.bd-share-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #4a4a68;
  background: #fff;
  cursor: pointer;
}

.bd-share-btn:hover {
  background: #d64045;
  border-color: #d64045;
  color: #fff;
}

.bd-featured-image {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 34px;
  max-height: 460px;
  object-fit: cover;
  cursor: zoom-in;
}

.bd-featured-image--placeholder {
  aspect-ratio: 16 / 9;
  min-height: 200px;
  max-height: none;
  cursor: default;
  background: url("https://placehold.co/780x440/f8f9fa/e5e7eb?text=Featured+Image") center / cover no-repeat;
  border: 1px solid #e5e7eb;
}

.bd-article-body {
  font-size: 17px;
  line-height: 1.75;
  color: #4a4a68;
}

.bd-article-body p {
  margin-bottom: 20px;
}

.bd-article-body h2,
.bd-article-body h3 {
  color: #1a1a2e;
  margin-top: 40px;
  margin-bottom: 16px;
  line-height: 1.35;
}

.bd-article-body h2 {
  font-size: 24px;
  font-weight: 700;
}

.bd-article-body h2:first-of-type,
.bd-article-body h3:first-of-type {
  margin-top: 0;
}

.bd-article-body img {
  width: 100%;
  border-radius: 12px;
  margin: 20px 0;
  cursor: zoom-in;
}

.bd-article-body blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  border-left: 4px solid #d64045;
  background: #f8f9fa;
  border-radius: 0 12px 12px 0;
  color: #1a1a2e;
  font-size: 18px;
  font-style: italic;
}

.bd-article-body .info-box {
  margin: 28px 0;
  padding: 20px 24px;
  background: rgba(214, 64, 69, 0.08);
  border-left: 4px solid #d64045;
  border-radius: 0 12px 12px 0;
}

.bd-article-body .info-box p {
  margin: 0;
  color: #4a4a68;
  font-size: 15px;
}

.bd-article-body .info-box strong {
  color: #d64045;
}

.bd-article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}

.bd-tag {
  padding: 8px 14px;
  border-radius: 6px;
  background: #f8f9fa;
  color: #4a4a68;
  text-decoration: none;
  font-size: 14px;
}

.bd-tag:hover {
  background: #d64045;
  color: #fff;
}

.bd-author-bio {
  margin-top: 34px;
  background: #f8f9fa;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  gap: 20px;
}

.bd-author-bio-avatar {
  width: 80px;
  height: 80px;
  border-radius: 999px;
  background: #e9edf2;
  color: #1a1a2e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 24px;
  flex-shrink: 0;
}

.bd-author-bio-content h4 {
  margin: 0 0 8px;
  color: #1a1a2e;
}

.bd-author-bio-content p {
  margin: 0 0 12px;
  color: #4a4a68;
}

.bd-author-bio-social {
  display: flex;
  gap: 12px;
}

.bd-author-bio-social a {
  color: #8b8b9f;
  font-size: 18px;
}

.bd-author-bio-social a:hover {
  color: #d64045;
}

.bd-related-section {
  max-width: 780px;
  margin: 48px auto 0;
  padding-top: 42px;
  border-top: 1px solid #e5e7eb;
}

.bd-related-title {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 24px;
}

.bd-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.bd-related-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  background: #fff;
  color: inherit;
  transition: 0.2s;
}

.bd-related-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.bd-related-card-image {
  height: 140px;
  background-size: cover;
  background-position: center;
}

.bd-related-card-body {
  padding: 16px;
}

.bd-related-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a2e;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bd-related-card-date {
  font-size: 13px;
  color: #8b8b9f;
}

.bd-cta-section {
  max-width: 780px;
  margin: 48px auto 0;
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  background: linear-gradient(135deg, #d64045 0%, #bf2f3a 100%);
  color: #fff;
}

.bd-cta-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 12px;
}

.bd-cta-text {
  margin: 0 0 24px;
  opacity: 0.9;
}

.bd-cta-btn {
  display: inline-block;
  padding: 14px 26px;
  background: #fff;
  color: #d64045;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
}

.bd-cta-btn:hover {
  background: #f8f9fa;
}

.bd-image-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.bd-image-overlay img {
  max-width: 92vw;
  max-height: 90vh;
  border-radius: 12px;
  object-fit: contain;
}

@media (max-width: 900px) {
.bd-share-buttons {
    width: 100%;
    margin-left: 0;
  }

  .bd-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .bd-author-bio {
    flex-direction: column;
    align-items: flex-start;
  }

  .bd-related-grid {
    grid-template-columns: 1fr;
  }

  .bd-cta-section {
    padding: 28px 20px;
  }
}
