/* Blog page styles (aligned to site light theme) */

/* Inline styles moved to CSS */
.clear-search {
    display: none;
}

.no-results {
    display: none;
}

.post-meta-bar {
    margin-top: 10px;
}

.adsbygoogle {
    display: block;
    text-align: center;
}
.blog-listing { padding: 40px 0; }
.blog-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.post-card { background: #ffffff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px; transition: border-color .2s ease, box-shadow .2s ease, transform .15s ease; }
.post-card:hover { border-color: #0d9488; box-shadow: 0 10px 24px rgba(0,0,0,0.08); transform: translateY(-2px); }
.post-link { text-decoration: none; color: inherit; display: block; }
.post-thumb { width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; border: 1px solid #e5e7eb; background:#f8fafc; margin-bottom: 10px; }
.post-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.post-meta { display: flex; gap: 12px; font-size: 12px; color: #64748b; margin-bottom: 8px; align-items: center; flex-wrap: wrap; }
.post-tag { background: #ecfeff; color: #0d9488; padding: 2px 8px; border-radius: 999px; border: 1px solid #99f6e4; }
.post-title { margin: 8px 0 8px; font-size: 22px; color: #111827; line-height: 1.3; }
.post-excerpt { color: #334155; margin: 0 0 10px; }
.read-more { color: #0d9488; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.post-link:focus-visible { outline: 3px solid rgba(13,148,136,0.35); outline-offset: 3px; border-radius: 10px; }
.read-more i { transition: transform .15s ease; }
.post-card:hover .read-more i { transform: translateX(2px); }

/* Ensure bullets show inside post content despite global reset */
.post-body ul { list-style: disc outside; padding-left: 24px; }
.post-body ol { list-style: decimal outside; padding-left: 24px; }
.post-body ul ul { list-style: circle; }
.post-body ul li, .post-body ol li { margin: 6px 0; }
.post-body li::marker { color: #0f172a; }

/* Post layout enhancements */
.post-hero .container, .post-body .container { max-width: 1320px; }
.breadcrumb { font-size: 14px; margin: 12px 0 6px; color:#64748b; }
.breadcrumb a { color:#0d9488; }
.post-meta-bar { display:flex; gap:12px; color:#64748b; font-size:14px; align-items:center; flex-wrap:wrap; }
.meta-sep { color:#94a3b8; }

.post-layout { display: grid; grid-template-columns: 1fr; gap: 24px; }
.post-main { min-width: 0; max-width: 820px; width: 100%; }
.post-aside { position: relative; padding-left: 12px; }

.post-toc { position: sticky; top: 100px; background:#ffffff; border:1px solid #e5e7eb; border-radius:12px; padding:16px; z-index:0; overflow:visible; }
.post-toc h4 { margin:0 0 8px; font-size:16px; color:#0f172a; }
.post-toc ul { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:6px; }
.post-toc a { color:#334155; font-size:15px; display:block; padding:6px 8px; border-radius:8px; }
.post-toc a:hover { color:#0d9488; background:#f0fdfa; }
.post-toc a.active { color:#0d9488; background:#ecfeff; font-weight:600; }

.share-bar { display:flex; gap:10px; align-items:center; margin: 8px 0 0; }
.share-bar a { display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; border:1px solid #e5e7eb; border-radius:8px; color:#0f172a; background:#ffffff; line-height:0; }
.share-bar a:hover { border-color:#0d9488; color:#0d9488; }
.share-bar a:last-child { font-family: var(--font-display, inherit); font-weight:700; }
.share-bar img { width:18px; height:18px; display:block; }
.share-bar i { display:block; font-size:16px; line-height:1; }

@media (min-width: 1024px) {
  /* Match first column to article max width to avoid empty space */
  .post-layout { grid-template-columns: minmax(0, 820px) 300px; gap: 32px; justify-content: center; }
}

/* Move TOC to left rail on very wide screens so it never conflicts with right ads */
@media (min-width: 1440px) {
  .post-toc {
    position: fixed;
    top: 110px;
    width: 260px;
    left: max(20px, calc((100vw - 1200px) / 2 - 292px));
    z-index: 5;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    overflow:visible;
  }
  /* Collapse right column when TOC is fixed to avoid blank space */
  .post-layout { grid-template-columns: minmax(0, 820px); justify-content: center; }
  .post-aside { padding-left: 0; }
}

.toc-hidden { opacity: 0; pointer-events: none; transition: opacity .2s ease; }

/* Ads */
.ad-container { display:flex; justify-content:center; align-items:center; padding: 10px; background:#ffffff; border:1px solid #e5e7eb; border-radius:12px; margin: 16px 0; min-height: 120px; }
.ad-label { font-size: 11px; color:#94a3b8; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; display:block; text-align:center; }

.promo-card { background:#ffffff; border:1px solid #e5e7eb; border-radius:12px; padding:16px; }
.promo-card h4 { margin: 0 0 6px; color:#0f172a; }
.promo-card p { margin: 0 0 12px; }

/* Mobile TOC */
.toc-mobile { display:none; margin:16px 0; }
.toc-mobile summary { cursor:pointer; font-weight:600; color:#0f172a; }
.toc-mobile ul { margin-top:8px; }

@media (max-width: 1023px) {
  .post-aside { display:none; }
  .toc-mobile { display:block; }
}

/* Anchor scroll offset for sticky header */
.post-main h2[id], .post-main h3[id] { scroll-margin-top: 110px; }

@media (min-width: 768px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
}


