/* ══════════════════════════════════════════════════════════════════
   blog-post.css
   Page-specific stylesheet for blog-post.php ONLY (the single-article
   detail page). Kept fully separate from blogs.css (the blog LISTING
   page) on purpose: editing one page's styles can never accidentally
   break the other, since each page loads only its own stylesheet
   (see the id="page-css" <link> in blog-post.php / blogs.php).

   SECTION 0 is the same tiny layout safety-net every page-css file
   carries (copied on purpose, not shared, for the same reason above).

   SECTION 1 is the handful of shared ".about-*" / ".js-pro-desc"
   classes this page actually uses (article wrapper, "More from the
   blog" subheading, the not-found description text).

   SECTION 2 is the horizontal + sticky-sidebar Google Ad boxes.

   SECTION 3 is the article page itself: header, featured image,
   two-column layout, article body, and the "More from the blog"
   prev/next carousel.
   ══════════════════════════════════════════════════════════════════ */


/* ════════════════════════════════════════════════════════════════
   SECTION 0 — layout safety net
   ════════════════════════════════════════════════════════════════ */

#home, #home * { box-sizing: border-box; }

#home .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

#home img { max-width: 100%; display: block; }

#home a { text-decoration: none; }


/* ════════════════════════════════════════════════════════════════
   SECTION 1 — shared components this page uses
   ════════════════════════════════════════════════════════════════ */

.js-pro-desc {
  font-size: 15px; color: var(--muted); line-height: 1.6;
  margin: 10px 0 0; max-width: 620px;
}

.about-content { background: var(--bg); padding: 64px 0; }

.about-subheading {
  font-family: 'Sora', sans-serif;
  font-size: 17px; font-weight: 700;
  color: var(--text); margin: 26px 0 10px;
}


/* ════════════════════════════════════════════════════════════════
   SECTION 2 — Google Ad boxes (horizontal in-article + sticky sidebar)
   ════════════════════════════════════════════════════════════════ */

.about-ad-label {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); margin-bottom: 8px; text-align: center;
}

.blg-ad-horizontal { margin: 26px 0; }
.blg-ad-box {
  width: 100%; min-height: 100px;
  background: white; border: 1.5px dashed var(--border); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow);
}


/* ════════════════════════════════════════════════════════════════
   SECTION 3 — single article page
   No full-bleed image banner — a plain header block instead, with
   the featured image shown as a normal inline <img> so it's never
   hidden behind a dark gradient overlay.
   ════════════════════════════════════════════════════════════════ */

.blg-post-header {
  max-width: 820px; margin: 0 auto;
  padding: calc(var(--header-h, 75px) + var(--topbar-h, 38px) + 32px) 20px 0;
}
.blg-post-crumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--muted); margin-bottom: 18px;
}
.blg-post-crumb a { color: var(--muted); font-weight: 600; }
.blg-post-crumb a:hover { color: var(--saffron); }
.blg-post-crumb i { font-size: 10px; color: var(--border); }

.blg-post-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,107,0,.1); color: var(--saffron);
  border: 1px solid rgba(255,107,0,.25);
  font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 6px 12px; border-radius: 999px; margin-bottom: 14px;
}

.blg-post-title {
  font-family: 'Sora', sans-serif; font-size: 30px; font-weight: 800;
  color: var(--text); line-height: 1.3; letter-spacing: -0.5px; margin: 0 0 16px;
}

.blg-post-meta {
  display: flex; flex-wrap: wrap; gap: 16px;
  margin: 0 0 22px; padding-bottom: 22px; border-bottom: 1px solid var(--border);
}
.blg-post-meta span {
  font-size: 12.5px; font-weight: 600; color: var(--muted);
  display: inline-flex; align-items: center; gap: 6px;
}
.blg-post-meta i { color: var(--saffron); }

.blg-post-featured-img { max-width: 820px; margin: 0 auto; padding: 0 20px; }
.blg-post-featured-img img {
  width: 100%; height: auto; max-height: 440px; object-fit: cover;
  border-radius: 16px; box-shadow: var(--shadow);
}

.blg-post-content { padding: 32px 0 48px; }
.blg-post-inner { max-width: 1160px; margin: 0 auto; }

/* two-column layout: article + sticky ad sidebar */
.blg-post-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 40px; align-items: start; }
.blg-post-main { max-width: 820px; width: 100%; }

.blg-post-aside { position: sticky; top: calc(var(--header-h, 75px) + var(--topbar-h, 38px) + 20px); }
.blg-sticky-ad-box {
  width: 100%; min-height: 480px;
  background: white; border: 1.5px dashed var(--border); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow);
}

.blg-post-article { font-size: 15.5px; line-height: 1.9; color: var(--text); }
.blg-post-article h2 {
  font-family: 'Sora', sans-serif; font-size: 21px; font-weight: 800;
  color: var(--text); letter-spacing: -0.4px; margin: 32px 0 12px;
}
.blg-post-article h2:first-child { margin-top: 0; }
.blg-post-article p { margin: 0 0 18px; color: var(--muted); }
.blg-post-article ul, .blg-post-article ol { margin: 0 0 18px; padding-left: 22px; color: var(--muted); }
.blg-post-article li { margin-bottom: 8px; }
.blg-post-article strong { color: var(--text); }
.blg-post-article a { color: var(--saffron); text-decoration: underline; }
.blg-post-article img { border-radius: 12px; margin: 8px 0 20px; }

.blg-back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 700; color: var(--text);
  text-decoration: none; margin: 8px 0 30px;
}
.blg-back-link i { color: var(--saffron); font-size: 12px; }
.blg-back-link:hover { color: var(--saffron); }

/* "More from the blog" — horizontal prev/next carousel, fully dynamic */
.blg-more { margin-top: 20px; }
.blg-more-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.blg-more-nav { display: flex; gap: 8px; }
.blg-more-btn {
  width: 34px; height: 34px; border-radius: 999px;
  border: 1px solid var(--border); background: white; color: var(--text);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; cursor: pointer;
  transition: border-color .15s ease, color .15s ease, opacity .15s ease;
}
.blg-more-btn:hover:not(:disabled) { border-color: var(--saffron); color: var(--saffron); }
.blg-more-btn:disabled { opacity: .35; cursor: not-allowed; }

.blg-more-viewport { overflow: hidden; margin-top: 14px; }
.blg-more-track {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
  padding-bottom: 4px; scrollbar-width: none;
}
.blg-more-track::-webkit-scrollbar { display: none; }
.blg-more-card {
  flex: 0 0 calc(50% - 8px); scroll-snap-align: start;
  display: flex; flex-direction: column;
  background: white; border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; text-decoration: none;
  transition: transform .15s ease, border-color .15s ease;
}
.blg-more-card:hover { transform: translateY(-2px); border-color: var(--saffron); }
.blg-more-img { height: 140px; background-size: cover; background-position: center; background-color: var(--light); }
.blg-more-body { padding: 12px 14px 14px; }
.blg-more-title {
  font-family: 'Sora', sans-serif; font-size: 13.5px; font-weight: 700;
  color: var(--text); line-height: 1.4; margin-bottom: 8px;
}
.blg-more-meta { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.blg-more-meta i { color: var(--saffron); }


/* ════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .blg-post-layout { grid-template-columns: 1fr; }
  .blg-post-main { max-width: 100%; }
  .blg-post-aside { position: static; order: 3; margin-top: 12px; }
  .blg-sticky-ad-box { min-height: 120px; }
}

@media (max-width: 700px) {
  .blg-post-title { font-size: 23px; }
  .blg-more-card { flex: 0 0 82%; }
}

@media (prefers-reduced-motion: reduce) {
  .blg-more-btn, .blg-more-card, .blg-back-link { transition: none; }
  .blg-more-track { scroll-behavior: auto; }
}