/* ============================================================
   EthosMedi — Blog Detail Page CSS  (v5)
   ============================================================ */

/* ============================================================
   READING PROGRESS BAR
   ============================================================ */
.bd-progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #009688, #00bca4);
  z-index: 9999;
  transition: width 0.08s linear;
  border-radius: 0 2px 2px 0;
}

/* ============================================================
   ARTICLE HERO — Two Column (Left text / Right image)
   ============================================================ */
.bd-hero {
  background: linear-gradient(135deg, #f0faf9 0%, #e8f5f4 40%, #f6f9ff 100%);
  padding: 32px 0 36px;
  border-bottom: 1px solid #e8ecf4;
  position: relative;
  overflow: hidden;
}

/* Full dot pattern on hero (matching listing page) */
.bd-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='2' cy='2' r='1.5' fill='%23009688' fill-opacity='0.12'/%3E%3C/svg%3E");
  background-size: 40px 40px;
  pointer-events: none;
}
.bd-hero > * { position: relative; z-index: 1; }

/* Breadcrumb */
.bd-breadcrumb { margin-bottom: 24px; }
.bd-breadcrumb .breadcrumb {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  margin: 0; 
  padding: 8px 18px; 
  background: #ffffff;
  border-radius: 100px;
  border: 1px solid #e8ecf4;
  box-shadow: 0 4px 12px rgba(17,24,39,0.04);
}
.bd-breadcrumb .breadcrumb-item a {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}
.bd-breadcrumb .breadcrumb-item a:hover { color: #009688; }
.bd-breadcrumb .breadcrumb-item.active { color: #111827; font-weight: 700; font-size: 12px; }
.bd-breadcrumb .breadcrumb-item + .breadcrumb-item::before { content: '›'; color: #d1d5db; font-size: 14px; padding: 0 6px; }

/* Hero content */
.bd-hero-content { max-width: 720px; margin: 0 auto; }

/* Category badge */
.bd-hero-tag { margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 7px; }
.bd-cat-badge {
  display: inline-flex;
  align-items: center;
  background: #e8f5f4;
  border: 1.5px solid #b2dfdb;
  color: #00695c;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  border-radius: 100px;
  padding: 4px 13px;
}

/* Hero title — refined, NOT oversized */
.bd-hero-title {
  font-size: clamp(20px, 2.4vw, 32px);
  font-weight: 800;
  color: #111827;
  line-height: 1.25;
  letter-spacing: -0.4px;
  margin-bottom: 22px;
  padding-left: 16px;
  border-left: 4px solid #009688;
}

/* Author row */
.bd-author-row {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-wrap: wrap;
}
.bd-author-avatar-wrap { flex-shrink: 0; }
.bd-author-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e8ecf4;
}
.bd-author-name {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1px;
}
.bd-author-meta {
  font-size: 11.5px;
  color: #9ca3af;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.bd-author-meta i { color: #009688; }

/* Share buttons */
.bd-share-group { display: flex; gap: 6px; align-items: center; }
.bd-share-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1.5px solid #e8ecf4;
  background: #fff;
  color: #374151;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.bd-share-btn:hover {
  border-color: #009688;
  background: #f0faf9;
  color: #009688;
}

/* ============================================================
   HERO FEATURED IMAGE PANEL (right column)
   ============================================================ */
.bd-hero-feat-img {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 340px;
  box-shadow: 0 12px 40px rgba(0,150,136,0.15), 0 4px 16px rgba(17,24,39,0.08);
}
.bd-hero-feat-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.5s ease;
}
.bd-hero-feat-img:hover img { transform: scale(1.04); }
.bd-hero-feat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.25) 100%);
  pointer-events: none;
  border-radius: 20px;
}

/* ============================================================
   ARTICLE BODY
   ============================================================ */
.bd-article-wrap {
  background: #f8f9fb;
  padding: 40px 0 60px;
}

/* Article card */
.bd-article-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e8ecf4;
  box-shadow: 0 2px 12px rgba(17,24,39,0.05);
  padding: 40px 44px;
  margin-bottom: 20px;
}

/* Table of Contents */
.bd-toc-wrap {
  background: #f0faf9;
  border: 1.5px solid #b2dfdb;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 28px;
}
.bd-toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.bd-toc-title {
  font-size: 12px;
  font-weight: 700;
  color: #00695c;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.bd-toc-toggle {
  background: none; border: none;
  font-size: 12px; color: #6b7280;
  cursor: pointer; padding: 2px 8px;
  border-radius: 6px; transition: background 0.2s;
}
.bd-toc-toggle:hover { background: #e0f5f3; color: #00695c; }
.bd-toc-nav a {
  display: flex; align-items: center; gap: 6px;
  font-size: 13.5px; color: #374151;
  text-decoration: none;
  padding: 5px 0;
  border-bottom: 1px dashed #b2dfdb;
  transition: color 0.2s; line-height: 1.4;
}
.bd-toc-nav a:last-child { border-bottom: none; }
.bd-toc-nav a:hover { color: #009688; }
.bd-toc-nav a i { color: #009688; flex-shrink: 0; font-size: 15px; }

/* Article content typography */
.bd-content-body h2 {
  font-size: 21px; font-weight: 800; color: #111827;
  margin-top: 36px; margin-bottom: 14px;
  padding-left: 16px;
  border-left: 4px solid #009688;
  line-height: 1.3;
}
.bd-content-body h2:first-child { margin-top: 0; }
.bd-content-body h3 {
  font-size: 18px; font-weight: 700; color: #1f2937;
  margin-top: 28px; margin-bottom: 12px;
}
.bd-content-body h4 {
  font-size: 15.5px; font-weight: 700; color: #374151;
  margin-top: 20px; margin-bottom: 10px;
}
.bd-content-body p {
  font-size: 16px; color: #374151;
  line-height: 1.9; margin-bottom: 18px;
}
.bd-content-body ul, .bd-content-body ol {
  padding-left: 24px; margin-bottom: 18px;
}
.bd-content-body li {
  font-size: 16px; color: #374151;
  line-height: 1.85; margin-bottom: 8px;
}
.bd-content-body strong { color: #111827; font-weight: 700; }
.bd-content-body a { color: #009688; text-decoration: underline; }
.bd-content-body a:hover { color: #00695c; }
.bd-content-body blockquote {
  background: #f0faf9;
  border-left: 4px solid #009688;
  border-radius: 12px;
  padding: 22px 28px;
  margin: 28px 0;
  font-style: italic;
  color: #374151;
  font-size: 16px;
  line-height: 1.8;
}
.bd-content-body img {
  border-radius: 14px;
  margin: 24px 0;
  box-shadow: 0 4px 18px rgba(17,24,39,0.09);
  max-width: 100%;
  height: auto;
}

/* Tags */
.bd-tags-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid #f0f4fb;
}
.bd-tags-label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 5px;
}
.bd-tags-label i { color: #009688; }
.bd-tag-chip {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  color: #6b7280;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 100px;
  font-weight: 500;
  transition: all 0.2s;
}
.bd-tag-chip:hover { background: #e8f5f4; border-color: #b2dfdb; color: #00695c; }

/* Bottom share row */
.bd-share-row-bottom {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 12px;
  padding: 16px 20px;
}
.bd-share-label { font-size: 13px; font-weight: 600; color: #374151; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.bd-sidebar-sticky { position: sticky; top: 90px; }

/* Lead form card */
.bd-sidebar-card {
  background: #ffffff;
  border: 1.5px solid #e8ecf4;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 18px;
  box-shadow: 0 2px 10px rgba(17,24,39,0.06);
}
.bd-sidebar-header {
  background: linear-gradient(135deg, #00695c, #009688);
  padding: 16px 20px;
}
.bd-sidebar-header h4 {
  font-size: 15px; font-weight: 700;
  color: #fff; margin: 0 0 3px;
}
.bd-sidebar-header p { font-size: 12px; color: rgba(255,255,255,0.75); margin: 0; }
.bd-sidebar-body { padding: 20px; }

/* Recent posts card */
.bd-recent-card {
  background: #fff;
  border: 1.5px solid #e8ecf4;
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(17,24,39,0.04);
}
.bd-recent-title {
  font-size: 13px; font-weight: 700; color: #111827;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 7px;
}
.bd-recent-title i { color: #009688; }
.bd-recent-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f4fb;
  text-decoration: none;
  transition: background 0.2s;
}
.bd-recent-item:last-child { border-bottom: none; padding-bottom: 0; }
.bd-recent-item:hover .bd-recent-post-title { color: #009688; }
.bd-recent-img {
  width: 58px; height: 48px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.bd-recent-img-placeholder {
  width: 58px; height: 48px;
  border-radius: 8px;
  background: #e8f5f4;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #009688;
  flex-shrink: 0;
}
.bd-recent-info { min-width: 0; }
.bd-recent-post-title {
  font-size: 12.5px; font-weight: 600; color: #111827;
  line-height: 1.35; margin-bottom: 4px;
  transition: color 0.2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bd-recent-date {
  font-size: 11px; color: #9ca3af;
  display: flex; align-items: center; gap: 4px;
}
.bd-recent-date i { color: #009688; font-size: 10px; }

/* Why box */
.bd-why-box {
  background: #fff; border: 1.5px solid #e8ecf4;
  border-radius: 16px; padding: 18px 20px;
  box-shadow: 0 2px 8px rgba(17,24,39,0.04);
}
.bd-why-title {
  font-size: 13px; font-weight: 700; color: #111827;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 7px;
}
.bd-why-title i { color: #009688; }
.bd-why-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid #f0f4fb;
  font-size: 13px; color: #374151; line-height: 1.4;
}
.bd-why-item:last-child { border-bottom: none; padding-bottom: 0; }
.bd-why-item strong { display: block; font-weight: 700; color: #111827; }
.bd-why-item span { font-size: 11.5px; color: #9ca3af; }
.bd-why-icon {
  width: 30px; height: 30px; border-radius: 8px;
  background: #e8f5f4;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #009688; flex-shrink: 0;
}

/* ============================================================
   RELATED ARTICLES
   ============================================================ */
.bd-related-section {
  background: #f8f9fb;
  padding: 56px 0 64px;
  border-top: 1px solid #e8ecf4;
}
.bd-related-header {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.bd-related-title {
  font-size: 22px; font-weight: 800; color: #111827;
  margin: 0;
}
.bd-view-all {
  font-size: 13px; font-weight: 600; color: #009688;
  text-decoration: none;
  display: flex; align-items: center; gap: 5px;
  transition: gap 0.2s;
}
.bd-view-all:hover { gap: 9px; color: #00695c; }

/* Related card */
.bd-rel-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e8ecf4;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 2px 8px rgba(17,24,39,0.05);
  display: flex; flex-direction: column;
}
.bd-rel-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,150,136,0.12); }

.bd-rel-img-wrap {
  height: 185px; overflow: hidden; background: #e8f5f4;
}
.bd-rel-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.bd-rel-card:hover .bd-rel-img-wrap img { transform: scale(1.05); }
.bd-rel-img-placeholder {
  width: 100%; height: 185px;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; color: #009688; background: #e8f5f4;
}

.bd-rel-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.bd-rel-cat {
  display: inline-block;
  font-size: 10px; font-weight: 700; color: #009688;
  text-transform: uppercase; letter-spacing: 0.7px;
  margin-bottom: 8px;
}
.bd-rel-title {
  font-size: 15px; font-weight: 700; color: #111827;
  line-height: 1.35; margin-bottom: 8px;
}
.bd-rel-excerpt {
  font-size: 13px; color: #6b7280;
  line-height: 1.65; margin-bottom: 14px; flex: 1;
}
.bd-rel-meta {
  font-size: 12px; color: #9ca3af;
  display: flex; align-items: center; gap: 5px;
}
.bd-rel-meta i { color: #009688; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
  .bd-sidebar-sticky { position: static; }
  .bd-hero-img { height: 320px; }
  .bd-article-card { padding: 28px 28px; }
  .bd-content-body h2 { font-size: 19px; }
  .bd-content-body p, .bd-content-body li { font-size: 15px; }
}
@media (max-width: 767.98px) {
  .bd-hero { padding: 24px 0 20px; }
  .bd-hero-title { font-size: 22px; }
  .bd-hero-img { height: 220px; }
  .bd-article-card { padding: 20px 18px; border-radius: 14px; }
  .bd-author-row { gap: 10px; }
  .bd-share-group.ms-auto { margin-left: 0 !important; }
  .bd-related-section { padding: 40px 0 48px; }
  .bd-related-title { font-size: 18px; }
  .bd-content-body h2 { font-size: 17px; }
  .bd-content-body h3 { font-size: 15px; }
  .bd-content-body p, .bd-content-body li { font-size: 14.5px; }
}
@media (max-width: 575.98px) {
  .bd-hero-img { height: 180px; }
  .bd-share-row-bottom { flex-direction: column; align-items: flex-start; }
}
