/* ============================================================
   Blog / Resource Single — blog-single.css
   Matches original blog article layout
   ============================================================ */

/* ── Page variables ───────────────────────────────────────── */
.blog-single-page {
  --bs-navy:  #0b1d2d;
  --bs-blue:  #245f7b;
  --bs-gold:  #d1aa60;
  --bs-ink:   #162735;
  --bs-mid:   #647584;
  --bs-light: #8a9aaa;
  --bs-bg:    #f4f7f8;
  --bs-line:  rgba(15,43,63,.12);
  background: #fff;
  color: var(--bs-ink);
}

/* ── Article header (navy band) ──────────────────────────── */
.blog-article-header {
  background: var(--bs-navy);
  padding: 80px 0 40px;
  color: #fff;
}
.blog-article-header h1 {
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin: 16px 0 20px;
  max-width: 820px;
}
.blog-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,.5);
  margin-bottom: 16px;
}
.blog-breadcrumb a { color: rgba(255,255,255,.68); text-decoration: none; }
.blog-breadcrumb a:hover { color: #fff; }
.blog-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,.55);
}
.bam-dot { color: rgba(255,255,255,.25); }
.bam-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(209,170,96,.18);
  border: 1px solid rgba(209,170,96,.35);
  color: var(--bs-gold);
  font-size: 11px;
  font-weight: 600;
}

/* ── Hero image ──────────────────────────────────────────── */
.blog-hero-img { padding: 0; }
.blog-hero-img .container { max-width: 1080px; }
.blog-hero-img img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

/* ── Article body: 2-col grid ────────────────────────────── */
.blog-article-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ── Article content ─────────────────────────────────────── */
.blog-article-content { min-width: 0; }

.entry-content { font-size: 16px; line-height: 1.85; color: var(--bs-ink); }
.entry-content h2 {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
  color: var(--bs-navy);
  margin: 40px 0 16px;
  line-height: 1.2;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--bs-line);
}
.entry-content h3 {
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 600;
  color: var(--bs-navy);
  margin: 28px 0 12px;
}
.entry-content p { margin: 0 0 20px; color: var(--bs-mid); }
.entry-content ul,
.entry-content ol {
  padding-left: 22px;
  margin: 0 0 20px;
  color: var(--bs-mid);
  font-size: 15px;
  line-height: 1.75;
}
.entry-content li { margin-bottom: 6px; }
.entry-content strong { color: var(--bs-navy); font-weight: 600; }
.entry-content a { color: var(--bs-blue); text-decoration: underline; }
.entry-content a:hover { color: var(--bs-navy); }

/* In-article images */
.blog-article-img { margin: 28px 0; border-radius: 12px; overflow: hidden; }
.blog-article-img img { width: 100%; height: auto; display: block; object-fit: cover; }
.blog-article-img--image img { max-height: 520px; }

/* Comparison / data tables */
.blog-article-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 13px;
  border: 1px solid var(--bs-line);
  border-radius: 10px;
  overflow: hidden;
}
.blog-article-table thead th {
  background: var(--bs-navy);
  color: #fff;
  padding: 12px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.blog-article-table tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--bs-line);
  color: var(--bs-mid);
  vertical-align: top;
}
.blog-article-table tbody tr:last-child td { border-bottom: none; }
.blog-article-table tbody tr:nth-child(odd) td { background: var(--bs-bg); }
.blog-article-table tbody td:first-child { font-weight: 600; color: var(--bs-navy); }

/* Author box */
.blog-author-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 48px;
  padding: 24px;
  background: var(--bs-bg);
  border: 1px solid var(--bs-line);
  border-radius: 12px;
}
.blog-author-avatar {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--bs-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bs-light);
}
.blog-author-name { font-weight: 600; color: var(--bs-navy); font-size: 15px; }
.blog-author-title { font-size: 12px; color: var(--bs-mid); margin: 4px 0 6px; }
.blog-author-bio { font-size: 13px; color: var(--bs-mid); margin: 0; line-height: 1.6; }

/* ── Sidebar ──────────────────────────────────────────────── */
.blog-article-sidebar { display: grid; gap: 24px; align-content: start; }
.blog-sidebar-panel {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--bs-line);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(8,30,45,.06);
}
.blog-sidebar-panel h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--bs-navy);
  margin: 0 0 10px;
}
.blog-sidebar-panel p {
  font-size: 13px;
  color: var(--bs-mid);
  line-height: 1.6;
  margin: 0 0 16px;
}
.blog-sidebar-btn {
  width: 100%;
  justify-content: center;
  margin-top: 10px;
}
.blog-sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.blog-sidebar-links li {
  border-bottom: 1px solid var(--bs-line);
  padding: 10px 0;
}
.blog-sidebar-links li:last-child { border-bottom: none; }
.blog-sidebar-links a {
  font-size: 13px;
  color: var(--bs-blue);
  text-decoration: none;
  line-height: 1.5;
  display: block;
}
.blog-sidebar-links a:hover { color: var(--bs-navy); text-decoration: underline; }

/* ── Related products section ────────────────────────────── */
.blog-related-products { background: var(--bs-bg); padding-top: 48px; }

/* ── Callout box (used in article body) ──────────────────── */
.blog-callout {
  margin: 32px 0;
  padding: 20px 24px;
  background: #fffbf0;
  border-left: 4px solid var(--bs-gold);
  border-radius: 0 8px 8px 0;
}
.blog-callout p { margin: 0; font-size: 15px; color: var(--bs-ink); line-height: 1.7; }
.blog-callout a { color: var(--bs-blue); font-weight: 600; text-decoration: underline; }

/* ── Timeline (week-by-week steps) ───────────────────────── */
.blog-timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 28px 0;
}
.blog-timeline-step {
  flex: 1 1 200px;
  padding: 20px;
  background: var(--bs-bg);
  border: 1px solid var(--bs-line);
  border-radius: 10px;
  position: relative;
}
.blog-timeline-step .week {
  display: inline-block;
  padding: 3px 10px;
  background: var(--bs-navy);
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: 10px;
}
.blog-timeline-step .title {
  font-size: 14px;
  font-weight: 700;
  color: var(--bs-navy);
  margin-bottom: 6px;
  line-height: 1.4;
}
.blog-timeline-step .desc {
  font-size: 13px;
  color: var(--bs-mid);
  line-height: 1.6;
}

/* ── In-article FAQ items ────────────────────────────────── */
.blog-faq-item {
  margin: 24px 0;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid var(--bs-line);
  border-radius: 10px;
}
.blog-faq-item h3 {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--bs-navy) !important;
  margin: 0 0 10px !important;
  padding-bottom: 0 !important;
  border-bottom: none !important;
}
.blog-faq-item p { margin: 0; font-size: 14px; color: var(--bs-mid); line-height: 1.7; }

/* ── Prev / Next article navigation ─────────────────────── */
.blog-nav {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 24px 48px;
  border-top: 1px solid var(--bs-line);
}
.blog-nav-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 48%;
  text-decoration: none;
}
.blog-nav-link--next { text-align: right; margin-left: auto; }
.blog-nav-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--bs-light);
}
.blog-nav-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--bs-blue);
  line-height: 1.4;
}
.blog-nav-link:hover .blog-nav-title { color: var(--bs-navy); text-decoration: underline; }

/* ── Responsive ──────────────────────────────────────────── */

/* Tablet ≤960px */
@media (max-width: 960px) {
  .blog-article-body {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 36px 20px 60px;
  }
  .blog-article-sidebar { position: static; }
  .blog-timeline { flex-direction: column; }
  .blog-timeline-step { flex: none; min-width: 0; }
  .blog-article-header { padding: 72px 0 36px; }
  .blog-article-header h1 { font-size: clamp(24px, 4vw, 36px); }
  /* Sidebar panels side-by-side on tablet */
  .blog-article-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .blog-sidebar-panel:first-child { grid-column: 1 / -1; }
  .blog-sidebar-cta-btn { grid-column: 1 / -1; }
}

/* Mobile ≤640px */
@media (max-width: 640px) {
  .blog-article-header { padding: 64px 0 28px; }
  .blog-article-header h1 { font-size: clamp(20px, 7vw, 30px); line-height: 1.25; }
  .blog-article-meta { gap: 6px; font-size: 12px; }
  .bam-tag { font-size: 10px; padding: 2px 7px; }
  .blog-breadcrumb { font-size: 11px; }

  .blog-article-body { padding: 24px 16px 40px; gap: 28px; }

  /* Back to single-column on mobile */
  .blog-article-sidebar { grid-template-columns: 1fr; }
  .blog-sidebar-panel:first-child { grid-column: auto; }
  .blog-sidebar-cta-btn { grid-column: auto; }

  /* Content typography */
  .entry-content { font-size: 15px; line-height: 1.8; }
  .entry-content h2 { font-size: clamp(18px, 5vw, 22px); margin: 28px 0 12px; }
  .entry-content h3 { font-size: 16px; margin: 20px 0 10px; }
  .entry-content p { margin-bottom: 16px; }

  /* Tables — horizontally scrollable */
  .blog-article-table { font-size: 12px; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .blog-article-table thead th,
  .blog-article-table tbody td { padding: 9px 10px; white-space: nowrap; }

  /* Images */
  .blog-hero-img img { max-height: 220px; object-fit: cover; }
  .blog-article-img img { border-radius: 8px; }

  /* Author box */
  .blog-author-box { flex-direction: column; gap: 12px; padding: 18px; }
  .blog-author-avatar { width: 44px; height: 44px; }

  /* Callout & FAQ */
  .blog-callout { padding: 14px 16px; }
  .blog-faq-item { padding: 14px 16px; }
  .blog-faq-item h3 { font-size: 14px !important; }

  /* Sidebar panels */
  .blog-sidebar-panel { padding: 18px; }
  .blog-sidebar-panel h3 { font-size: 14px; }

  /* Prev/Next nav */
  .blog-nav { flex-direction: column; gap: 12px; padding: 20px 16px 36px; }
  .blog-nav-link { max-width: 100%; }
  .blog-nav-link--next { text-align: left; margin-left: 0; }
  .blog-nav-title { font-size: 13px; }
}

/* Small mobile ≤400px */
@media (max-width: 400px) {
  .blog-article-header h1 { font-size: clamp(18px, 8vw, 26px); }
  .blog-article-body { padding: 20px 14px 32px; }
  .entry-content { font-size: 14px; }
  .blog-author-box { padding: 14px; }
  .blog-sidebar-panel { padding: 14px; }
}

/* ── Standalone sidebar CTA button ──────────────────────── */
.blog-sidebar-cta-btn {
  display: block;
  padding: 14px 20px;
  background: var(--bs-gold, #d1aa60);
  color: var(--bs-navy, #0b1d2d);
  border-radius: 8px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  transition: background .18s, color .18s;
}
.blog-sidebar-cta-btn:hover {
  background: #a88a48;
  color: #fff;
}
