/* ============================================================
   Cancer Prime — Blog Detail Page CSS
   ============================================================ */

/* ============================================================
   READING PROGRESS BAR
   ============================================================ */
.bd-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--cp-red, #8E3078), #7c3aed);
  z-index: 9999;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* ============================================================
   ARTICLE HERO
   ============================================================ */
.bd-hero {
  background: linear-gradient(135deg, #fdf8f9 0%, #ffffff 100%);
  padding: 60px 0 50px;
  border-bottom: 1px solid rgba(217, 132, 140, 0.1);
}

/* Breadcrumb */
.bd-breadcrumb {
  margin-bottom: 28px;
}
.bd-breadcrumb .breadcrumb {
  font-size: 13px;
  margin: 0; padding: 0; background: none;
}
.bd-breadcrumb .breadcrumb-item a {
  color: var(--cp-muted, #6b7280);
  text-decoration: none;
  transition: color 0.2s;
}
.bd-breadcrumb .breadcrumb-item a:hover { color: var(--cp-red, #8E3078); }
.bd-breadcrumb .breadcrumb-item.active {
  color: var(--cp-dark, #4e4445);
  font-weight: 500;
  /* truncate if long */
  max-width: 300px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  vertical-align: middle;
}
.bd-breadcrumb .breadcrumb-item + .breadcrumb-item::before { content: '›'; color: var(--cp-muted); }

/* Hero content — centered */
.bd-hero-content {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.bd-hero-tag {
  margin-bottom: 18px;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.bd-hero-title {
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 800;
  color: var(--cp-text, #1a1a2e);
  line-height: 1.18;
  letter-spacing: -0.5px;
  margin-bottom: 28px;
  font-family: 'Poppins', sans-serif;
}

/* Author row */
.bd-author-row {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.bd-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--cp-border, #e5e7eb);
  flex-shrink: 0;
}
.bd-author-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--cp-text, #1a1a2e);
  margin-bottom: 2px;
  text-align: left;
}
.bd-author-meta {
  font-size: 12px;
  color: var(--cp-muted, #6b7280);
  margin: 0;
  text-align: left;
}

/* Share buttons */
.bd-share-group {
  display: flex;
  gap: 8px;
  align-items: center;
}
.bd-share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--cp-border, #e5e7eb);
  background: #ffffff;
  color: var(--cp-dark, #4e4445);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.bd-share-btn:hover {
  border-color: var(--cp-dark);
  background: var(--cp-bg, #f7f4f4);
}

/* ============================================================
   HERO IMAGE
   ============================================================ */
.bd-hero-img-wrap {
  position: relative;
}
.bd-hero-img {
  border-radius: 20px;
  overflow: hidden;
  height: 340px;
  background: #fdf8f9;
  box-shadow: 0 15px 40px rgba(142, 48, 120, 0.12);
}
.bd-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  mix-blend-mode: multiply;
}

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

/* Narrow reading column */
.bd-article {
  max-width: 740px;
  margin: 0 auto;
}

/* Body text */
.bd-paragraph {
  font-family: 'Lora', Georgia, serif;
  font-size: 17px;
  color: #2d2d2d;
  line-height: 1.85;
  margin-bottom: 24px;
}

/* Subheadings inside article */
.bd-subheading {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--cp-text, #1a1a2e);
  margin: 40px 0 16px;
  padding-top: 16px;
}

/* List */
.bd-list {
  padding-left: 20px;
  margin-bottom: 24px;
}
.bd-list li {
  font-family: 'Lora', Georgia, serif;
  font-size: 16px;
  color: #2d2d2d;
  line-height: 1.8;
  margin-bottom: 12px;
}
.bd-list li strong {
  font-family: 'Poppins', sans-serif;
  color: var(--cp-text, #1a1a2e);
}

/* Pull quote */
.bd-pullquote {
  background: #f0e8f8;
  border-left: none;
  border-radius: 14px;
  padding: 28px 32px;
  margin: 36px 0;
  position: relative;
}
.bd-pullquote::before {
  content: '\201C';
  position: absolute;
  top: -8px;
  left: 24px;
  font-size: 64px;
  font-family: Georgia, serif;
  color: #c4b0d8;
  line-height: 1;
}
.bd-pullquote p {
  font-family: 'Lora', Georgia, serif;
  font-size: 18px;
  font-style: italic;
  color: #4a3360;
  line-height: 1.7;
  margin: 0;
  padding-left: 16px;
}

/* Inline figure */
.bd-inline-figure {
  margin: 40px 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--cp-border, #e5e7eb);
}
.bd-inline-figure img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}
.bd-inline-figure figcaption {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  color: var(--cp-muted, #6b7280);
  text-align: center;
  padding: 12px 16px;
  background: var(--cp-bg, #f7f4f4);
  font-style: italic;
}

/* Author bio card */
.bd-author-bio-card {
  background: #f0e8f8;
  border-radius: 16px;
  padding: 36px 36px;
  margin-top: 52px;
}
.bd-bio-quote {
  font-family: 'Lora', Georgia, serif;
  font-size: 17px;
  font-style: italic;
  color: #4a3360;
  line-height: 1.75;
  margin-bottom: 28px;
}
.bd-bio-author-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid rgba(124, 58, 237, 0.15);
}
.bd-bio-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(124, 58, 237, 0.2);
}
.bd-bio-name {
  font-size: 14px;
  font-weight: 700;
  color: #4a3360;
  margin-bottom: 2px;
  font-family: 'Poppins', sans-serif;
}
.bd-bio-desg {
  font-size: 12px;
  color: #7c3aed;
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
}

/* ============================================================
   RELATED INSIGHTS
   ============================================================ */
.bd-related-section {
  background: #ffffff;
  padding: 60px 0;
  border-top: 1px solid var(--cp-border, #e5e7eb);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
  .bd-hero-img { height: 340px; }
  .bd-article { max-width: 100%; }
  .bd-author-bio-card { padding: 28px 24px; }
}

@media (max-width: 767.98px) {
  .bd-hero { padding: 28px 0 24px; }
  .bd-hero-title { font-size: 26px; }
  .bd-hero-img { height: 220px; border-radius: 14px; }
  .bd-article-wrap { padding: 36px 0 40px; }
  .bd-paragraph { font-size: 15px; }
  .bd-pullquote { padding: 20px 20px; }
  .bd-pullquote p { font-size: 16px; }
  .bd-inline-figure img { height: 220px; }
  .bd-author-row { justify-content: flex-start; }
  .bd-share-group { margin-left: 0 !important; }
  .bd-subheading { font-size: 20px; }
  .bd-author-bio-card { padding: 22px 18px; }
  .bd-bio-quote { font-size: 15px; }
}

/* ============================================================
   RELATED & RECENT CARDS (Premium Style)
   ============================================================ */
.bd-rel-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.bd-rel-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    border-color: #8E3078;
}
.bd-rel-img-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
}
.bd-rel-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.bd-rel-card:hover .bd-rel-img-wrap img {
    transform: scale(1.08);
}
.bd-rel-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.bd-rel-cat {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    color: #8E3078;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 100px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 2;
}
.bd-rel-title {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #1a1a2e !important;
    line-height: 1.4;
    margin-bottom: 12px !important;
    transition: color 0.3s;
}
.bd-rel-card:hover .bd-rel-title {
    color: #8E3078 !important;
}
.bd-rel-excerpt {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}
.bd-rel-meta {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.bd-rel-meta i {
    color: #8E3078;
}

/* RECENT ARTICLES (Sidebar) */
.bd-recent-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.05);
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    margin-top: 24px;
}
.bd-recent-title {
    font-size: 18px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 16px;
}
.bd-recent-title i {
    color: #8E3078;
}
.bd-recent-item {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.bd-recent-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.bd-recent-item:hover {
    transform: translateX(4px);
}
.bd-recent-img {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
}
.bd-recent-post-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.4;
    margin-bottom: 6px;
    transition: color 0.3s;
}
.bd-recent-item:hover .bd-recent-post-title {
    color: #8E3078;
}
.bd-recent-date {
    font-size: 12px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 6px;
}
.bd-recent-date i {
    color: #8E3078;
}
