/* ═══════════════════════════════════════════════════════════
   BLOG DETAIL PAGE STYLES
═══════════════════════════════════════════════════════════ */

/* ─── Blog Hero ─────────────────────────────────────────── */
.blog-detail-hero {
  position: relative;
  height: 60vh;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-top: var(--nav-height);
}

.blog-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
  z-index: 1;
}

.blog-hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(40px, 8vw, 100px);
  color: var(--white);
  max-width: 1000px;
  width: 100%;
}

.blog-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  transition: all 0.3s;
  text-decoration: none;
}

.blog-back-link:hover {
  color: var(--white);
  transform: translateX(-4px);
}

.blog-detail-title {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.blog-meta {
  display: flex;
  gap: 12px;
  font-size: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.blog-author,
.blog-date,
.blog-read-time {
  color: rgba(255,255,255,0.9);
}

.blog-divider {
  color: rgba(255,255,255,0.5);
}

/* ─── Blog Content Section ──────────────────────────────── */
.blog-content-section {
  background: var(--white);
  padding: 60px 40px;
}

.blog-content-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 60px;
}

.blog-article {
  grid-column: 1;
}

.blog-body {
  font-size: 16px;
  color: var(--charcoal);
  line-height: 1.8;
}

.blog-body p {
  margin-bottom: 24px;
}

.blog-body h2 {
  font-size: 28px;
  color: var(--charcoal);
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 20px;
  line-height: 1.3;
}

.blog-body h3 {
  font-size: 20px;
  color: var(--charcoal);
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 16px;
}

.blog-body ul,
.blog-body ol {
  margin-left: 24px;
  margin-bottom: 24px;
}

.blog-body li {
  margin-bottom: 12px;
  line-height: 1.8;
}

.blog-body blockquote {
  padding: 24px;
  border-left: 4px solid var(--gold-dark);
  background: var(--off-white);
  margin: 32px 0;
  font-style: italic;
  color: var(--mid-grey);
}

/* ─── Images inside article body ───────────────────────── */
.blog-body img {
  max-width: 100%;
  height: auto;
  display: block;
}

.blog-body figure.blog-figure {
  margin: 36px 0;
}

.blog-body figure.blog-figure img {
  width: 100%;
  border-radius: 2px;
}

.blog-body figure.blog-figure-portrait {
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.blog-body figcaption {
  font-size: 13px;
  color: var(--mid-grey);
  margin-top: 10px;
  text-align: center;
  font-style: italic;
  line-height: 1.6;
}

/* ─── Blog Tags ─────────────────────────────────────────── */
.blog-tags {
  display: flex;
  gap: 12px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.blog-tag {
  display: inline-block;
  padding: 8px 16px;
  background: var(--off-white);
  color: var(--charcoal);
  border-radius: 4px;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.3s;
}

.blog-tag:hover {
  background: var(--gold-light);
  color: var(--charcoal);
}

/* ─── Blog Share ────────────────────────────────────────── */
.blog-share {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: var(--off-white);
  border-radius: 8px;
  margin-top: 40px;
}

.share-buttons {
  display: flex;
  gap: 12px;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--charcoal);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.share-btn:hover {
  background: var(--gold-dark);
  color: var(--white);
  border-color: var(--gold-dark);
}

/* ─── Author Box ────────────────────────────────────────── */
.author-box {
  display: flex;
  gap: 24px;
  padding: 32px;
  background: var(--off-white);
  border-radius: 8px;
  margin-top: 40px;
  align-items: flex-start;
}

.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-info {
  flex: 1;
}

.author-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.author-bio {
  font-size: 14px;
  color: var(--mid-grey);
  line-height: 1.6;
}

/* ─── Sidebar ───────────────────────────────────────────── */
.blog-sidebar {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sidebar-card {
  background: var(--off-white);
  padding: 24px;
  border-radius: 8px;
}

.sidebar-card h3 {
  font-size: 16px;
  color: var(--charcoal);
  font-weight: 600;
  margin-bottom: 20px;
}

/* ─── Related Posts ─────────────────────────────────────── */
.related-posts-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.related-post-link {
  display: block;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  text-decoration: none;
  color: var(--charcoal);
  font-size: 13px;
  transition: all 0.3s;
  line-height: 1.5;
}

.related-post-link:hover {
  background: var(--white);
  border-color: var(--gold-dark);
  color: var(--gold-dark);
}

/* ─── Categories ────────────────────────────────────────── */
.categories-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-link {
  display: inline-block;
  padding: 10px 0;
  color: var(--charcoal);
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}

.category-link:hover {
  color: var(--gold-dark);
  padding-left: 8px;
}

/* ─── Newsletter Card ───────────────────────────────────── */
.newsletter-card.sidebar-card {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--beige) 100%);
}

.newsletter-card h3 {
  color: var(--charcoal);
}

.newsletter-card p {
  font-size: 14px;
  color: var(--charcoal);
  margin-bottom: 16px;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.newsletter-form input {
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--charcoal);
  border-radius: 4px;
  font-size: 13px;
  font-family: inherit;
}

.newsletter-form button {
  padding: 10px 16px;
  background: var(--charcoal);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.newsletter-form button:hover {
  background: var(--gold-dark);
}

/* ─── Related Blogs Section ─────────────────────────────── */
.related-blogs-section {
  background: var(--off-white);
  padding: 60px 40px;
}

.related-blogs-container {
  max-width: 1400px;
  margin: 0 auto;
}

.related-blogs-container h2 {
  font-size: 32px;
  color: var(--charcoal);
  margin-bottom: 40px;
  text-align: center;
}

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .blog-content-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .blog-article {
    grid-column: 1;
  }
  
  .blog-sidebar {
    grid-column: 1;
  }
}

@media (max-width: 768px) {
  .blog-content-section {
    padding: 40px 24px;
  }
  
  .blog-detail-hero {
    height: 50vh;
    min-height: 400px;
  }
  
  .blog-hero-content {
    padding: 32px 24px;
  }
  
  .blog-detail-title {
    font-size: 28px;
  }
  
  .blog-meta {
    font-size: 12px;
  }
  
  .blog-body {
    font-size: 15px;
  }
  
  .blog-body h2 {
    font-size: 22px;
  }
  
  .author-box {
    flex-direction: column;
    text-align: center;
  }
  
  .share-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .blog-share {
    flex-direction: column;
    text-align: center;
  }
  
  .related-blogs-section {
    padding: 40px 24px;
  }
}

/* ═══════════════════════════════════════════════════════════
   PREMIUM POLISH (article typography, hero, cards)
═══════════════════════════════════════════════════════════ */
.blog-detail-hero { background: var(--charcoal); }
.blog-hero-overlay {
  background: linear-gradient(180deg, rgba(10,10,10,0.25) 0%, rgba(10,10,10,0.45) 45%, rgba(10,10,10,0.82) 100%);
}
.blog-detail-title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  max-width: 900px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.blog-meta { letter-spacing: 0.06em; text-transform: uppercase; font-size: 12px; }
.blog-detail-hero .blog-hero-content::before {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 22px;
}

.blog-content-section { padding: 80px 40px 70px; }
.blog-content-container { gap: 72px; }
.blog-article { min-width: 0; }
.blog-body {
  font-size: 17px;
  line-height: 1.9;
  color: #333;
}
.blog-body > p:first-child {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.7;
  color: var(--charcoal);
  padding-bottom: 28px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--border);
}
.blog-body strong { color: var(--charcoal); font-weight: 600; }
.blog-body h2 {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  margin-top: 64px;
  margin-bottom: 22px;
  letter-spacing: -0.005em;
}
.blog-body h2::before {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 18px;
}
.blog-body h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin-top: 34px;
  margin-bottom: 10px;
  color: var(--charcoal);
}
.blog-body h3 + p { color: var(--mid-grey); }
.blog-body ul { list-style: none; margin-left: 0; padding: 0; }
.blog-body ul li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 14px;
}
.blog-body ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.78em;
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
}
.blog-body figure.blog-figure { margin: 48px 0; }
.blog-body figure.blog-figure img {
  border-radius: 3px;
  box-shadow: 0 24px 56px rgba(10,10,10,0.14);
}
.blog-body figcaption { margin-top: 16px; letter-spacing: 0.02em; }

.blog-tags { gap: 10px; }
.blog-tag {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--mid-grey);
}
.author-box, .blog-share { border: 1px solid var(--border); background: var(--off-white); }
.blog-sidebar { align-self: start; position: sticky; top: 110px; }
.sidebar-card { border: 1px solid var(--border); }

/* "More From Our Blog" cards (blogs.css is not loaded on this page) */
.related-blogs-container .blogs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 32px;
}
.related-blogs-container .blog-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.related-blogs-container .blog-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-dark);
  box-shadow: 0 18px 44px rgba(10,10,10,0.1);
}
.related-blogs-container .blog-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  background: var(--off-white);
}
.related-blogs-container .blog-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.35;
  padding: 20px 22px 8px;
  color: var(--charcoal);
}
.related-blogs-container .blog-card p {
  padding: 0 22px 24px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--mid-grey);
}

@media (max-width: 900px) {
  .blog-content-section { padding: 56px 22px; }
  .blog-body { font-size: 16px; }
  .blog-body > p:first-child { font-size: 19px; }
  .blog-body h2 { font-size: 28px; margin-top: 48px; }
  .blog-sidebar { position: static; }
}

/* ─── Comments ──────────────────────────────────────────── */
.blog-comments { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--border); }
.comments-title { font-family: var(--font-display); font-size: 28px; font-weight: 600; margin-bottom: 28px; color: var(--charcoal); }
.comments-title span { color: var(--gold-dark); font-size: 20px; }
.comment-list { list-style: none; margin: 0 0 40px; padding: 0; }
.comment { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.comment-avatar { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; background: var(--off-white); border: 1px solid var(--gold); color: var(--gold-dark); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 18px; }
.comment-main { flex: 1; min-width: 0; }
.comment-head { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; margin-bottom: 6px; }
.comment-head strong { color: var(--charcoal); font-size: 15px; }
.comment-head time { font-size: 12px; color: var(--mid-grey); letter-spacing: 0.04em; text-transform: uppercase; }
.comment-main p { margin: 0; font-size: 15px; line-height: 1.8; color: #333; overflow-wrap: anywhere; }
.comments-empty { color: var(--mid-grey); margin-bottom: 36px; }
.comment-form-wrap { background: var(--off-white); border: 1px solid var(--border); padding: 32px; }
.comment-form-wrap h4 { font-family: var(--font-display); font-size: 22px; margin: 0 0 8px; color: var(--charcoal); }
.comment-note { font-size: 13px; color: var(--mid-grey); margin: 0 0 24px; line-height: 1.6; }
.comment-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.comment-field { margin-bottom: 18px; }
.comment-field label { display: block; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--charcoal); margin-bottom: 8px; }
.comment-field input, .comment-field textarea { width: 100%; padding: 13px 15px; border: 1px solid var(--border); background: var(--white); font: inherit; font-size: 15px; color: var(--charcoal); border-radius: 0; box-sizing: border-box; }
.comment-field input:focus, .comment-field textarea:focus { outline: none; border-color: var(--gold-dark); }
.comment-field textarea { resize: vertical; min-height: 130px; }
.comment-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.comment-submit { background: var(--gold); color: var(--charcoal); border: 1px solid var(--gold); padding: 14px 34px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; cursor: pointer; transition: all 0.3s; }
.comment-submit:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--white); }
.comment-submit:disabled { opacity: 0.6; cursor: wait; }
.comment-status { margin: 16px 0 0; font-size: 14px; min-height: 20px; }
.comment-status.is-ok { color: #2e7d32; }
.comment-status.is-error { color: #c0392b; }
@media (max-width: 600px) { .comment-row { grid-template-columns: 1fr; gap: 0; } .comment-form-wrap { padding: 22px; } }
