/* ═══════════════════════════════════════════════
   CLICK2INTERIOR — Blog Detail Page Styles
   File: assets/css/blog-detail.css
   ═══════════════════════════════════════════════ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=DM+Sans:wght@300;400;500&family=DM+Mono:wght@400&display=swap');

/* ── CSS Variables ── */
:root {
  --ink:        #1a1209;
  --ink-light:  #3d2e1a;
  --gold:       #c9a96e;
  --gold-light: #e8d5b0;
  --cream:      #faf6f0;
  --cream-dark: #f0e9de;
  --muted:      #6b5a44;
  --border:     rgba(26,18,9,0.10);
  --border-md:  rgba(26,18,9,0.16);
  --serif:      'Cormorant Garamond', Georgia, serif;
  --sans:       'DM Sans', sans-serif;
  --mono:       'DM Mono', monospace;
}

/* ════════════════════════════════
   1. HERO
   ════════════════════════════════ */
.bd-hero {
  position: relative;
  height: 580px;
  overflow: hidden;
  background: var(--ink);
}
.bd-hero-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;  /* add karo — top crop hoga, center-bottom dikhega */
  opacity: 0.55;
  transform: scale(1.04);
  animation: bdHeroZoom 8s ease forwards;
}
@keyframes bdHeroZoom {
  to { transform: scale(1); }
}
.bd-hero-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    170deg,
    rgba(26,18,9,0.05) 0%,
    rgba(26,18,9,0.30) 40%,
    rgba(26,18,9,0.88) 100%
  );
}
.bd-hero-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0 clamp(20px, 6vw, 120px) 52px;
  max-width: 900px;
}
.bd-hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.bd-cat {
  display: inline-block;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 14px;
}
.bd-hero-meta-item {
  font-family: var(--sans);
  font-size: 12.5px;
  color: rgba(245,239,230,0.65);
  display: flex;
  align-items: center;
  gap: 5px;
}
.bd-hero-meta-item svg {
  width: 13px; height: 13px;
  stroke: rgba(245,239,230,0.5);
  fill: none; stroke-width: 1.8;
}
.bd-hero-meta-sep {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(245,239,230,0.3);
}
.bd-hero-h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 600;
  color: #f5efe6;
  line-height: 1.18;
  margin: 0;
  letter-spacing: -0.01em;
}
.bd-hero-h1 em {
  font-style: italic;
  color: var(--gold);
}

/* ════════════════════════════════
   2. BREADCRUMB
   ════════════════════════════════ */
.bd-breadcrumb {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 14px clamp(20px, 6vw, 120px);
}
.bd-breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
}
.bd-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}
.bd-breadcrumb a:hover { color: var(--ink); }
.bd-breadcrumb svg {
  width: 12px; height: 12px;
  stroke: var(--border-md);
  fill: none; stroke-width: 2;
}
.bd-breadcrumb-current { color: var(--ink); font-weight: 500; }

/* ════════════════════════════════
   3. MAIN LAYOUT
   ════════════════════════════════ */
.bd-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
  align-items: start;
}
.bd-main { padding: 52px 52px 52px 0; min-width: 0; }
.bd-sidebar { padding: 52px 0; position: sticky; top: 90px; }

/* ════════════════════════════════
   4. ARTICLE CONTENT
   ════════════════════════════════ */

/* Intro / Lead */
.bd-lead {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 400;
  color: var(--ink-light);
  line-height: 1.65;
  margin: 0 0 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}

/* Body content from DB */
.bd-content { font-family: var(--sans); color: var(--ink); }

.bd-content h2 {
  font-family: var(--serif);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
  margin: 44px 0 18px;
  padding-top: 8px;
  border-top: 2px solid var(--gold);
  display: inline-block;
}
.bd-content h3 {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  color: var(--ink);
  margin: 32px 0 14px;
}
.bd-content p {
  font-size: 15.5px;
  line-height: 1.80;
  color: #2e2215;
  margin: 0 0 20px;
}
.bd-content ul, .bd-content ol {
  margin: 0 0 20px 0;
  padding-left: 0;
  list-style: none;
}
.bd-content ul li, .bd-content ol li {
  font-size: 15px;
  line-height: 1.75;
  color: #2e2215;
  padding: 7px 0 7px 24px;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.bd-content ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  background: var(--gold);
}
.bd-content ol { counter-reset: bdol; }
.bd-content ol li { counter-increment: bdol; }
.bd-content ol li::before {
  content: counter(bdol);
  position: absolute;
  left: 0; top: 7px;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
}
.bd-content a { color: var(--ink); border-bottom: 1px solid var(--gold); text-decoration: none; }
.bd-content a:hover { color: var(--gold); }

.bd-content img {
  width: 100%;
  height: auto;
  display: block;
  margin: 32px 0;
  object-fit: cover;
}

/* Blockquote */
.bd-content blockquote {
  margin: 36px 0;
  padding: 28px 32px;
  background: var(--cream-dark);
  border-left: 4px solid var(--gold);
  position: relative;
}
.bd-content blockquote::before {
  content: '"';
  position: absolute;
  top: -10px; left: 24px;
  font-family: var(--serif);
  font-size: 80px;
  color: var(--gold);
  line-height: 1;
  opacity: 0.4;
}
.bd-content blockquote p {
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  color: var(--ink);
  margin: 0;
  line-height: 1.6;
}
.bd-content blockquote cite {
  display: block;
  margin-top: 12px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  font-style: normal;
}

/* Pro Tip / Callout Box */
.bd-tip {
  margin: 36px 0;
  padding: 24px 28px;
  background: rgba(201,169,110,0.08);
  border: 1px solid rgba(201,169,110,0.3);
  position: relative;
}
.bd-tip-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.bd-tip-label svg {
  width: 14px; height: 14px;
  stroke: var(--gold); fill: none; stroke-width: 2;
}
.bd-tip p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-light);
  margin: 0 !important;
}

/* Key Takeaways */
.bd-takeaways {
  margin: 36px 0;
  padding: 28px 32px;
  background: var(--ink);
}
.bd-takeaways-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.bd-takeaways-title svg {
  width: 16px; height: 16px;
  stroke: var(--gold); fill: none; stroke-width: 2;
}
.bd-takeaways ul {
  list-style: none;
  padding: 0; margin: 0;
}
.bd-takeaways ul li {
  font-family: var(--sans);
  font-size: 14px;
  color: rgba(245,239,230,0.82);
  padding: 10px 0 10px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  position: relative;
  line-height: 1.6;
}
.bd-takeaways ul li:last-child { border-bottom: none; }
.bd-takeaways ul li::before {
  content: '→';
  position: absolute;
  left: 0; top: 10px;
  color: var(--gold);
  font-size: 13px;
}

/* Image Gallery */
.bd-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 36px 0;
}
.bd-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin: 0 !important;
  display: block;
}
.bd-gallery-caption {
  grid-column: 1 / -1;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 4px;
  font-style: italic;
}

/* ── Tags + Share ── */
.bd-tags-share {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 28px 0;
  margin-top: 44px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.bd-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.bd-tag {
  font-family: var(--sans);
  font-size: 11.5px;
  color: var(--muted);
  border: 1px solid var(--border-md);
  padding: 5px 14px;
  text-decoration: none;
  transition: all .2s;
  letter-spacing: .04em;
}
.bd-tag:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.bd-share { display: flex; align-items: center; gap: 10px; }
.bd-share-lbl {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.bd-share-btn {
  width: 36px; height: 36px;
  border: 1px solid var(--border-md);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  text-decoration: none;
}
.bd-share-btn:hover { background: var(--ink); border-color: var(--ink); }
.bd-share-btn:hover svg { stroke: var(--cream); }
.bd-share-btn svg { width: 15px; height: 15px; stroke: var(--ink); fill: none; stroke-width: 1.8; }

/* ── Author Box ── */
.bd-author {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 32px;
  background: var(--cream-dark);
  margin-top: 44px;
  border-left: 3px solid var(--gold);
}
.bd-author-avatar {
  width: 64px; height: 64px;
  min-width: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-light);
}
.bd-author-avatar-placeholder {
  width: 64px; height: 64px;
  min-width: 64px;
  border-radius: 50%;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--gold);
  border: 2px solid var(--gold-light);
}

.bd-author-role {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.bd-author-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.bd-author-bio {
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 12px;
}
.bd-author-more {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 1px;
}

/* ════════════════════════════════
   5. SIDEBAR
   ════════════════════════════════ */
.bd-toc {
  border: 1px solid var(--border-md);
  padding: 24px;
  margin-bottom: 28px;
}
.bd-toc-title {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.bd-toc-title svg { width: 13px; height: 13px; stroke: var(--muted); fill: none; stroke-width: 2; }
.bd-toc-list { list-style: none; padding: 0; margin: 0; }
.bd-toc-list li + li { margin-top: 2px; }
.bd-toc-list a {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  padding: 7px 10px;
  border-left: 2px solid transparent;
  transition: all .2s;
  line-height: 1.4;
}
.bd-toc-list a:hover,
.bd-toc-list a.active {
  color: var(--ink);
  border-left-color: var(--gold);
  background: rgba(201,169,110,0.07);
  padding-left: 14px;
}
.bd-toc-list .toc-h3 a { padding-left: 20px; font-size: 12px; }
.bd-toc-list .toc-h3 a:hover,
.bd-toc-list .toc-h3 a.active { padding-left: 24px; }

/* Sidebar CTA */
.bd-sidebar-cta {
  background: var(--ink);
  padding: 28px 24px;
  margin-bottom: 28px;
  text-align: center;
}
.bd-sidebar-cta-eyebrow {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.bd-sidebar-cta h4 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: #f5efe6;
  line-height: 1.3;
  margin-bottom: 10px;
}
.bd-sidebar-cta p {
  font-family: var(--sans);
  font-size: 12.5px;
  color: rgba(245,239,230,0.6);
  line-height: 1.6;
  margin-bottom: 18px;
}
.bd-sidebar-cta-btn {
  display: block;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .06em;
  text-align: center;
  padding: 13px 20px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  width: 100%;
  transition: background .2s;
}
.bd-sidebar-cta-btn:hover { background: #d4b47a; }

/* Sidebar Related Mini */

.bd-sidebar-related-title {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.bd-mini-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.bd-mini-card:last-child { border-bottom: none; }
.bd-mini-card-img {
  width: 64px; min-width: 64px; height: 52px;
  object-fit: cover;
  display: block;
}

.bd-mini-card-cat {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.bd-mini-card-title {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

/* ════════════════════════════════
   6. RELATED ARTICLES (bottom)
   ════════════════════════════════ */
.bd-related {
  background: var(--cream-dark);
  padding: 64px clamp(20px, 6vw, 120px);
  border-top: 1px solid var(--border);
}
.bd-related-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 16px;
}
.bd-related-header h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.bd-related-header h2 em { font-style: italic; color: var(--gold); }
.bd-related-see {
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border-md);
  padding-bottom: 2px;
}
.bd-related-see svg { width: 14px; height: 14px; stroke: var(--muted); fill: none; stroke-width: 2; }
.bd-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.bd-rel-card {
  background: #fff;
  text-decoration: none;
  display: block;
  transition: transform .25s;
}
.bd-rel-card:hover { transform: translateY(-4px); }
.bd-rel-card-img {
  width: 100%; height: 200px;
  object-fit: cover;
  display: block;
}
.bd-rel-card-body { padding: 20px; }
.bd-rel-card-cat {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.bd-rel-card-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 10px;
}
.bd-rel-card-meta {
  font-family: var(--sans);
  font-size: 11.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ════════════════════════════════
   7. BOTTOM CTA BANNER
   ════════════════════════════════ */
.bd-cta-banner {
  background: var(--ink);
  padding: 64px clamp(20px, 6vw, 120px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.bd-cta-banner-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.bd-cta-banner-left h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 600;
  color: #f5efe6;
  line-height: 1.22;
  margin: 0 0 10px;
}
.bd-cta-banner-left h2 em { font-style: italic; color: var(--gold); }
.bd-cta-banner-left p {
  font-family: var(--sans);
  font-size: 14px;
  color: rgba(245,239,230,0.6);
  line-height: 1.6;
  max-width: 480px;
}
.bd-cta-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .04em;
  padding: 16px 32px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: background .25s, transform .2s;
}
.bd-cta-banner-btn:hover { background: #d4b47a; transform: translateY(-2px); }
.bd-cta-banner-btn svg { width: 16px; height: 16px; stroke: var(--ink); fill: none; stroke-width: 2; }

/* ════════════════════════════════
   8. PROGRESS BAR
   ════════════════════════════════ */
.bd-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--gold);
  width: 0%;
  z-index: 9999;
  transition: width .1s linear;
}

/* ════════════════════════════════
   9. RESPONSIVE
   ════════════════════════════════ */
@media (max-width: 900px) {
  .bd-layout {
    grid-template-columns: 1fr;
    padding: 0 clamp(16px, 4vw, 40px);
  }
  .bd-main { padding: 36px 0; }
  .bd-sidebar { padding: 0 0 36px; position: static; }
  .bd-toc { display: none; }
  .bd-related-grid { grid-template-columns: 1fr 1fr; }
  .bd-hero { height: 420px; }
}
@media (max-width: 600px) {
  .bd-related-grid { grid-template-columns: 1fr; }
  .bd-gallery { grid-template-columns: 1fr; }
  .bd-hero { height: 340px; }
  .bd-hero-h1 { font-size: 26px; }
  .bd-author { flex-direction: column; gap: 14px; }
  .bd-cta-banner { flex-direction: column; }
}