/* ── Blog detail pages (all individual blog HTML files) ── */

body:has(.blog-detail-layout) {
  background: var(--color-light-bg);
}

/* Hero */
body:has(.blog-detail-layout) .banner-sec {
  text-align: left;
  box-shadow: 0 8px 32px rgba(10, 37, 64, 0.12);
}
body:has(.blog-detail-layout) .banner-sec .overlay {
  align-items: flex-start;
  justify-content: center;
  padding: 3rem 2rem;
  min-height: 240px;
  background:
    linear-gradient(135deg, rgba(4, 21, 37, 0.97) 0%, rgba(10, 37, 64, 0.92) 50%, rgba(13, 92, 110, 0.95) 100%);
}
body:has(.blog-detail-layout) .banner-sec .header-sec {
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}
body:has(.blog-detail-layout) .banner-sec h1,
body:has(.blog-detail-layout) .banner-sec .banner-title {
  text-align: left;
  padding: 0;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 0.5rem;
  color: #fff;
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
}
body:has(.blog-detail-layout) .banner-sec .banner-subtitle {
  text-align: left;
  margin: 0;
  max-width: 560px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.82);
}
body:has(.blog-detail-layout) .banner-sec .header-sec svg {
  display: block;
  margin-top: 1rem;
}

.blog-hero-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(20, 163, 184, 0.25);
  border: 1px solid rgba(20, 163, 184, 0.5);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

/* Main layout */
body:has(.blog-detail-layout) main.container {
  padding-top: 0;
  padding-bottom: 3.5rem;
}
body:has(.blog-detail-layout) .breadcrumbs {
  margin: 1.25rem 0 1.5rem;
}

.blog-detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}

/* Post card */
.blog-post.card,
.blog-sidebar .card {
  border: 1px solid rgba(13, 124, 140, 0.08);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  background: #fff;
  overflow: hidden;
}

.blog-post .featured-image {
  width: 100%;
  height: auto;
  display: block;
  max-height: 420px;
  object-fit: cover;
}

.blog-post .post-body {
  padding: 2rem 2.25rem 2.5rem;
}

/* Post meta */
.blog-post .post-body > .seo-last-updated {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  background: rgba(13, 124, 140, 0.1);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.65rem;
}

.blog-post .post-body > address {
  display: block;
  font-style: normal;
  font-size: 0.88rem;
  color: #5a7a8c;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(13, 124, 140, 0.1);
  line-height: 1.6;
}

.blog-post .post-body > address a {
  color: var(--color-dark);
  font-weight: 600;
}

/* Typography */
.blog-post .post-body h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  color: var(--color-dark);
  font-weight: 400;
  margin-bottom: 1.25rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.blog-post .post-body h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  color: var(--color-dark);
  font-weight: 400;
  margin: 2rem 0 1rem;
  letter-spacing: -0.02em;
  padding: 0 0 0.65rem 1rem;
  border-left: 4px solid var(--color-primary);
  border-bottom: 1px solid rgba(13, 124, 140, 0.08);
}

.blog-post .post-body h2:first-of-type {
  margin-top: 1.5rem;
}

.blog-post .post-body h3,
.blog-post .post-body h6 {
  font-family: 'Onest', sans-serif;
  color: var(--color-dark);
  margin-top: 1.5rem;
  margin-bottom: 0.65rem;
  font-weight: 700;
  font-size: 1.05rem;
  padding-left: 1rem;
  border-left: 3px solid rgba(13, 124, 140, 0.35);
}

.blog-post .post-body p,
.blog-post .post-body li {
  line-height: 1.8;
  color: var(--color-text);
}

.blog-post .post-body p {
  margin-bottom: 1.1rem;
}

.blog-post .post-body ul,
.blog-post .post-body ol {
  padding-left: 0;
  list-style: none;
  margin: 0 0 1.25rem;
}

.blog-post .post-body ul li,
.blog-post .post-body ol li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.55rem;
}

.blog-post .post-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

.blog-post .post-body ol {
  counter-reset: blog-ol;
}

.blog-post .post-body ol li {
  counter-increment: blog-ol;
}

.blog-post .post-body ol li::before {
  content: counter(blog-ol);
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: rgba(13, 124, 140, 0.12);
  color: var(--color-primary);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.blog-post .post-body blockquote {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--color-primary);
  background: linear-gradient(135deg, rgba(13, 124, 140, 0.06) 0%, rgba(20, 163, 184, 0.03) 100%);
  border-radius: 0 14px 14px 0;
  border: 1px solid rgba(13, 124, 140, 0.1);
  border-left: 4px solid var(--color-primary);
}

.blog-post .post-body blockquote p {
  margin-bottom: 0;
  font-style: italic;
  color: var(--color-text);
}

.blog-post .post-body blockquote footer {
  font-style: normal;
  font-size: 0.9rem;
  margin-top: 0.75rem;
  color: #5a7a8c;
}

.blog-post .post-body a {
  color: var(--color-primary);
  font-weight: 600;
}

.blog-post .post-body strong {
  color: var(--color-dark);
}

/* Myth / Fact callouts */
.blog-post .post-body p > strong:first-child {
  display: inline-block;
  min-width: 3.5rem;
}

/* FAQ */
.blog-post .post-body .faq-list {
  margin-top: 0.5rem;
}

.blog-post .post-body > h2 + .faq-list {
  margin-top: 0.25rem;
}

/* Related links */
.internal-links,
.external-links {
  margin-top: 2rem;
  padding: 1.35rem 1.5rem;
  background: linear-gradient(135deg, #fff 0%, rgba(13, 124, 140, 0.04) 100%);
  border: 1px solid rgba(13, 124, 140, 0.1);
  border-radius: 14px;
}

.internal-links h3,
.external-links h3 {
  border-left: none !important;
  padding-left: 0 !important;
  margin-top: 0 !important;
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-size: 1.15rem;
}

.internal-links ul,
.external-links ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.internal-links li,
.external-links li {
  margin-bottom: 0.5rem;
  padding-left: 0;
}

.internal-links li::before,
.external-links li::before {
  display: none;
}

.internal-links a,
.external-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.internal-links a::before {
  content: "\f061";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.7rem;
  color: var(--color-primary);
}

/* Disclaimer */
.blog-post .post-body > h6:last-of-type,
.blog-post .post-body h6 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #5a7a8c;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  border-left: none;
  padding-left: 0;
}

.blog-post .post-body > h6 + p {
  font-size: 0.88rem;
  color: #5a7a8c;
  padding: 1rem 1.15rem;
  background: rgba(13, 124, 140, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(13, 124, 140, 0.08);
  margin-bottom: 0;
}

/* Sidebar */
.blog-sidebar {
  position: sticky;
  top: 90px;
}

.blog-sidebar .card {
  padding: 1.35rem;
  margin-bottom: 1.25rem;
  transition: box-shadow 0.25s, border-color 0.25s;
}

.blog-sidebar .card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(13, 124, 140, 0.18);
}

.blog-sidebar .search-box input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e8eef2;
  border-radius: 12px;
  font-family: inherit;
  background: #f8fbfd;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.blog-sidebar .search-box input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(13, 124, 140, 0.12);
  background: #fff;
}

.blog-sidebar .author-photo {
  width: 100%;
  max-width: 180px;
  height: auto;
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  display: block;
  box-shadow: var(--shadow-sm);
  border: 3px solid #fff;
}

.blog-sidebar h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.15rem;
  color: var(--color-dark);
  font-weight: 400;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(13, 124, 140, 0.1);
}

.blog-sidebar .author-box p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #5a7a8c;
  margin: 0;
}

.blog-sidebar .posts-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 520px;
  overflow-y: auto;
}

.blog-sidebar .posts-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(13, 124, 140, 0.08);
}

.blog-sidebar .posts-list li:last-child {
  border-bottom: none;
}

.blog-sidebar .posts-list a {
  display: block;
  font-weight: 600;
  color: var(--color-dark);
  font-size: 0.92rem;
  line-height: 1.4;
  transition: color 0.2s;
}

.blog-sidebar .posts-list a:hover {
  color: var(--color-primary);
}

.blog-sidebar .posts-list time {
  display: block;
  font-size: 0.78rem;
  color: #888;
  margin-top: 0.25rem;
}

.blog-sidebar .no-results {
  font-size: 0.9rem;
  color: #888;
  margin: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 991px) {
  .blog-detail-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .blog-sidebar {
    position: static;
  }

  .blog-post .post-body {
    padding: 1.5rem;
  }

  body:has(.blog-detail-layout) .banner-sec .overlay {
    min-height: 200px;
    padding: 2.5rem 1.25rem;
  }
}

@media (max-width: 576px) {
  body:has(.blog-detail-layout) .banner-sec .overlay {
    min-height: 180px;
    padding: 2rem 1rem;
  }

  .blog-post .post-body {
    padding: 1.15rem;
  }

  .blog-post .post-body h1 {
    font-size: 1.3rem;
  }

  .blog-post .post-body h2 {
    font-size: 1.15rem;
  }

  .faq-item summary {
    font-size: 0.95rem;
  }

  .internal-links,
  .external-links {
    padding: 1.1rem 1.15rem;
  }
}
