/* COMM Blog Theme - Light Mode Matching Home Page Theme */

/* Unified Typography - Clean Inter font throughout the entire page and header */
body.blog-post-page,
body.blog-post-page h1,
body.blog-post-page h2,
body.blog-post-page h3,
body.blog-post-page h4,
body.blog-post-page h5,
body.blog-post-page h6,
body.blog-post-page p,
body.blog-post-page a,
body.blog-post-page span,
body.blog-post-page button,
body.blog-post-page .site-header,
body.blog-post-page .brand-text,
body.blog-post-page .brand-sub,
body.blog-post-page .nav-links a,
body.blog-post-page .nav-cta,
body.blog-post-page .nav-cta a,
body.blog-post-page footer,
body.blog-post-page footer * {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

body.blog-post-page {
  background-color: var(--bg, #f6f7f3) !important;
  color: var(--ink, #101613) !important;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* Ensure the standard header displays correctly with consistent font */
body.blog-post-page .site-header {
  display: block !important;
}

body.blog-post-page .brand-text {
  font-weight: 700 !important;
  font-size: 19px !important;
  letter-spacing: -0.02em !important;
  line-height: 1.2 !important;
}

body.blog-post-page .brand-sub {
  font-weight: 600 !important;
  letter-spacing: 1.2px !important;
  font-size: 10px !important;
}

/* Breadcrumbs Bar below header */
.blog-breadcrumbs-bar {
  max-width: 1140px;
  margin: 0 auto;
  padding: 20px 24px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--muted, #5b655f);
}

.blog-breadcrumbs-bar a {
  color: var(--muted, #5b655f);
  text-decoration: none;
  transition: color 0.15s ease;
}

.blog-breadcrumbs-bar a:hover {
  color: var(--ink, #101613);
  text-decoration: underline;
}

.blog-breadcrumbs-bar .sep {
  color: #adb5af;
  font-size: 11px;
}

.blog-breadcrumbs-bar .current {
  color: var(--ink, #101613);
  font-weight: 500;
}

/* Main Container */
.blog-main-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 24px 24px 80px;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .blog-main-wrap {
    padding: 16px 16px 60px;
  }
  .blog-breadcrumbs-bar {
    padding: 14px 16px 0;
  }
}

/* Layout Grid */
.blog-layout-grid {
  display: block;
  position: relative;
}

@media (min-width: 1080px) {
  .blog-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    align-items: start;
    gap: 48px;
  }
}

.blog-content-col {
  max-width: 760px;
  width: 100%;
}

/* Main Container */
.blog-main-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0;
  position: relative;
}

@media (max-width: 600px) {
  .blog-main-wrap {
    padding: 16px 16px 60px;
  }
}

/* Desktop Sidebar - Normal flow (scrolls with content) */
@media (min-width: 1080px) {
  .blog-sidebar {
    position: static;
    height: auto;
    overflow-y: visible;
  }
}

/* Category Badge Pill */
.blog-category-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: var(--soft-red, #ffe9e4);
  color: var(--red-accessible, #d93a22);
  border: 1px solid rgba(242, 71, 47, 0.22);
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.01em;
  margin-bottom: 14px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.blog-category-badge:hover {
  background: #ffd6cc;
  border-color: rgba(242, 71, 47, 0.4);
}

/* Article Title */
.blog-article-title {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink, #101613);
  margin: 0 0 10px 0;
  letter-spacing: -0.02em;
}

@media (max-width: 768px) {
  .blog-article-title {
    font-size: 25px;
    line-height: 1.3;
  }
}

/* Metadata Line */
.blog-meta-line {
  font-size: 13.5px;
  color: var(--muted, #5b655f);
  margin-bottom: 24px;
  line-height: 1.5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.blog-meta-line .meta-sep {
  margin: 0 7px;
  color: #adb5af;
}

/* Hero Media (16:9) */
.blog-hero-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #eef1eb;
  border: 1px solid var(--line, #d9ded8);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-hero-media-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #728078;
  font-size: 13px;
  text-align: center;
  padding: 24px;
  background: #eef1eb;
  user-select: none;
}

/* Quick Answer Callout */
.blog-quick-answer {
  background: #f0f7ff;
  border: 1px solid #bae0fd;
  border-radius: 10px;
  padding: 16px 20px;
  margin: 24px 0 28px 0;
  position: sticky;
  top: 100px;
  z-index: 5;
}

.blog-quick-answer-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #0284c7;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.blog-quick-answer p {
  color: #1e3a5f;
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
}

/* Article Body Typography */
.blog-body-text {
  font-size: 16px;
  line-height: 1.75;
  color: #27312c;
  overflow-wrap: anywhere;
}

.blog-body-text p {
  margin: 0 0 20px 0;
}

.blog-body-text h2 {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 21px;
  font-weight: 700;
  color: var(--ink, #101613);
  margin: 36px 0 12px 0;
  line-height: 1.35;
  scroll-margin-top: 100px;
  letter-spacing: -0.01em;
}

.blog-body-text h2:first-of-type {
  margin-top: 24px;
}

.blog-body-text h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink, #101613);
  margin: 28px 0 10px 0;
}

.blog-body-text ul,
.blog-body-text ol {
  margin: 0 0 20px 0;
  padding-left: 22px;
}

.blog-body-text li {
  margin-bottom: 8px;
}

.blog-body-text a {
  color: var(--red-accessible, #d93a22);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.blog-body-text a:hover {
  color: var(--red-dark, #cc3421);
}

/* Red Flags Callout - Warning */
.blog-callout-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 16px 20px;
  margin: 26px 0;
}

.blog-callout-warning-title {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #b45309;
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.blog-callout-warning p {
  color: #78350f;
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0;
}

/* Inline Booking Card - Sticky positioning */
.blog-inline-cta {
  background: var(--surface, #ffffff);
  border: 1.5px solid var(--line, #d9ded8);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 32px 0;
  box-shadow: 0 4px 16px rgba(16, 22, 19, 0.04);
  position: sticky;
  top: 120px;
  z-index: 10;
}

@media (max-width: 600px) {
  .blog-inline-cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .blog-inline-cta-btn {
    width: 100%;
    text-align: center;
  }
}

.blog-inline-cta-info h3 {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink, #101613);
}

.blog-inline-cta-info p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted, #5b655f);
}

.blog-inline-cta-btn {
  display: inline-block;
  background: #101613;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease;
}

.blog-inline-cta-btn:hover {
  background: #27312c;
  transform: translateY(-1px);
}

/* Medical Disclaimer Note */
.blog-disclaimer-note {
  margin: 28px 0;
  padding-top: 16px;
  border-top: 1px solid var(--line, #d9ded8);
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted, #5b655f);
}

.blog-disclaimer-note p {
  margin: 0;
}

/* Author Profile Card */
.blog-author-card {
  background: var(--surface, #ffffff);
  border: 1px solid var(--line, #d9ded8);
  border-radius: 12px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 32px 0;
  box-shadow: 0 4px 16px rgba(16, 22, 19, 0.04);
}

@media (max-width: 640px) {
  .blog-author-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

.blog-author-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.blog-author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #e0f2fe;
  color: #0284c7;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid #bae0fd;
}

.blog-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-author-details h3 {
  margin: 0 0 3px 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink, #101613);
}

.blog-author-details p {
  margin: 0;
  font-size: 13px;
  color: var(--muted, #5b655f);
}

.blog-author-book-link {
  color: #0284c7 !important;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.blog-author-book-link:hover {
  color: #0369a1 !important;
  text-decoration: underline !important;
}

/* Table of Contents Widget */
.blog-toc-widget {
  margin-bottom: 24px;
  background: var(--surface, #ffffff);
  border: 1px solid var(--line, #d9ded8);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(16, 22, 19, 0.04);
}

.blog-toc-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--muted, #5b655f);
  margin: 0 0 14px 0;
  text-transform: uppercase;
}

.blog-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-toc-list li {
  margin-bottom: 10px;
}

.blog-toc-list a {
  color: var(--muted, #5b655f) !important;
  text-decoration: none !important;
  font-size: 14px;
  line-height: 1.45;
  display: block;
  transition: color 0.15s ease;
}

.blog-toc-list a:hover {
  color: var(--ink, #101613) !important;
}

.blog-toc-list a.is-active {
  color: #0284c7 !important;
  font-weight: 700;
}

/* White Booking Card */
.blog-booking-white-card {
  background: var(--surface, #ffffff);
  border: 1px solid var(--line, #d9ded8);
  border-radius: 12px;
  padding: 22px 20px;
  color: var(--ink, #101613);
  margin-top: 16px;
  box-shadow: 0 6px 20px rgba(16, 22, 19, 0.06);
}

.blog-booking-white-card h3 {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink, #101613);
}

.blog-booking-white-card p.booking-price {
  margin: 0 0 16px 0;
  font-size: 13.5px;
  color: var(--muted, #5b655f);
  font-weight: 500;
}

.btn-booking-black {
  display: block;
  width: 100%;
  background: #101613;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  padding: 11px 16px;
  border-radius: 8px;
  text-decoration: none !important;
  box-sizing: border-box;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-booking-black:hover {
  background: #27312c;
  transform: translateY(-1px);
}

.link-whatsapp-subtle {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted, #5b655f) !important;
  text-decoration: none !important;
  font-weight: 500;
  transition: color 0.15s ease;
}

.link-whatsapp-subtle:hover {
  color: var(--ink, #101613) !important;
  text-decoration: underline !important;
}

/* Desktop vs Mobile display of widgets */
@media (min-width: 1080px) {
  .blog-mobile-widgets {
    display: none !important;
  }
}

@media (max-width: 1079px) {
  .blog-sidebar {
    display: none !important;
  }
  .blog-mobile-widgets {
    display: block;
    margin: 32px 0;
  }
}

/* Keep Reading Section */
.blog-keep-reading {
  margin: 40px 0 32px;
}

.blog-keep-reading h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink, #101613);
  margin: 0 0 16px 0;
}

.blog-keep-reading-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 768px) {
  .blog-keep-reading-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.blog-keep-reading-card {
  background: var(--surface, #ffffff);
  border: 1px solid var(--line, #d9ded8);
  border-radius: 10px;
  padding: 16px 18px;
  color: var(--ink, #101613) !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 12px rgba(16, 22, 19, 0.03);
}

.blog-keep-reading-card:hover {
  border-color: var(--red, #f2472f);
  box-shadow: 0 6px 18px rgba(16, 22, 19, 0.08);
  transform: translateY(-1px);
}

/* Bottom Floating / Sticky Banner */
.blog-bottom-banner {
  background: var(--surface, #ffffff);
  border: 1px solid var(--line, #d9ded8);
  border-radius: 14px;
  padding: 18px 24px;
  color: var(--ink, #101613);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 36px 0 20px 0;
  box-shadow: 0 8px 30px rgba(16, 22, 19, 0.08);
}

@media (max-width: 680px) {
  .blog-bottom-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 20px;
  }
  .blog-bottom-banner-actions {
    width: 100%;
    display: flex;
    gap: 10px;
  }
  .blog-bottom-banner-actions a {
    flex: 1;
    text-align: center;
  }
}

.blog-bottom-banner-text h4 {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink, #101613);
}

.blog-bottom-banner-text p {
  margin: 0;
  font-size: 13px;
  color: var(--muted, #5b655f);
}

.blog-bottom-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-banner-black {
  background: #101613;
  color: #ffffff !important;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.btn-banner-black:hover {
  background: #27312c;
}

.btn-banner-outline {
  background: #ffffff;
  color: var(--ink, #101613) !important;
  border: 1px solid var(--line, #d9ded8);
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-banner-outline:hover {
  background: #f7f9f6;
  border-color: #adb5af;
}

/* Caption Note at Bottom */
.blog-footer-note {
  font-size: 12px;
  color: var(--muted, #5b655f);
  line-height: 1.5;
  margin-top: 16px;
  text-align: left;
}
