/* ============================================================
   BLOG DETAIL (single post)
   Extracted from the main style.css to cut unused CSS weight on
   every OTHER page - this file now loads ONLY on its own template,
   enqueued conditionally in functions.php. See that file's comment
   for the full explanation (PageSpeed Insights 'Reduce unused CSS'
   finding).
   ============================================================ */

/* ============================================================
   BLOG DETAIL (single post)
   ============================================================ */
.bd-hero { background: linear-gradient(to top, #0A5634, #008449); padding: 56px 0 220px; text-align: center; }
.bd-badge { display: inline-block; background: var(--green-mid); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 1.32px; padding: 7px 20px; border-radius: 999px; margin-bottom: 20px; }
.bd-title { font-family: var(--font-heading); font-size: clamp(24px, 3vw, 35px); font-weight: 500; color: #fff; line-height: 1.4; max-width: 900px; margin: 0 auto 16px; }
.bd-meta { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.bd-meta-item { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body); font-weight: 300; font-size: 15px; color: #E7E9E7; }
.bd-meta-icon { width: 17px; height: 17px; display: inline-flex; color: #E7E9E7; }
.bd-meta-icon svg { width: 100%; height: 100%; }
.bd-meta-sep { color: #659579; font-size: 13px; }

.bd-banner-wrap { margin-top: -180px; position: relative; z-index: 2; }
.bd-banner { border-radius: 25px; overflow: hidden; aspect-ratio: 1171/375; }
.bd-banner img { width: 100%; height: 100%; object-fit: cover; }

.bd-body { padding: 56px 0 40px; background: var(--white); }
.bd-layout { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: start; margin-bottom: 40px; }

.bd-sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 24px; }
.bd-toc { display: flex; flex-direction: column; }
.bd-toc-link { display: block; padding: 9px 0 9px 16px; font-size: 18px; font-weight: 700; color: var(--gray-500); border-left: 3px solid transparent; }
.bd-toc-link.bd-toc-level-3 { font-size: 16px; font-weight: 400; padding-left: 28px; }
.bd-toc-link.bd-toc-level-4 { font-size: 15px; font-weight: 400; padding-left: 40px; }
.bd-toc-link:hover { color: var(--green-mid); }
.bd-toc-link.is-active { color: var(--text-dark); border-left-color: var(--green-mid); }

.bd-subscribe { background: var(--green-dark); border-radius: 22px; padding: 25px 19px; overflow: hidden; }
.bd-subscribe-title { font-size: 24px; font-weight: 500; color: #FFC93B; margin-bottom: 12px; }
.bd-subscribe-desc { font-size: 14px; color: #CBDBCF; line-height: 1.6; margin-bottom: 22px; }
.bd-subscribe-form { display: flex; flex-direction: column; gap: 12px; }
.bd-subscribe-input { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.22); border-radius: 10px; padding: 13px 16px; font-size: 14px; color: #fff; font-family: var(--font-body); }
.bd-subscribe-input::placeholder { color: #CBDBCF; }
.bd-subscribe-btn { background: var(--green-mid); color: #fff; border: none; border-radius: 10px; padding: 14px; font-size: 15px; font-weight: 500; }
.bd-subscribe-btn:hover { background: var(--green); }
.bd-subscribe-msg { font-size: 14px; color: var(--green-light); }
.bd-subscribe-msg.is-error { color: #ff9c9c; }

.bd-back { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; color: var(--green-mid); align-self: flex-start; }
.bd-back-icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gray-100); }
.bd-back-icon svg { width: 16px; height: 16px; }

.bd-main { min-width: 0; }
.bd-content { max-width: 100%; }
.bd-content p { font-size: 18px; color: #444; line-height: 1.75; }
.bd-content h2 { font-size: 27px; letter-spacing: -0.5px; color: #0E1D16; margin: 44px 0 18px; }
.bd-content h3 { font-size: 22px; color: #0E1D16; margin: 36px 0 16px; }
.bd-content h4 { font-size: 19px; color: #0E1D16; margin: 28px 0 14px; }
.bd-content blockquote { font-family: var(--font-script); font-style: italic; font-weight: 500; font-size: 25px; line-height: 1.68; color: #0E1D16; border-left: 3px solid var(--green-mid); padding: 6px 0 6px 28px; margin: 32px 0; }
.bd-content ul { list-style: none; padding-left: 0; margin: 0 0 20px; }
.bd-content ul li { position: relative; padding-left: 36px; margin-bottom: 14px; font-size: 18px; color: #444; }
.bd-content ul li strong { color: #0E1D16; }
.bd-content ul li::before { content: ''; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--green-mid); }
.bd-content ul li::after { content: '\2713'; position: absolute; left: 5px; top: 2px; width: 22px; height: 22px; color: #fff; font-size: 12px; line-height: 22px; text-align: center; }
.bd-content h2, .bd-content h3, .bd-content h4 { scroll-margin-top: calc(var(--header-h) + 24px); }

.bd-tags { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--gray-200); }
.bd-tags-label { font-size: 15px; font-weight: 700; color: #0E1D16; margin-right: 6px; }
.bd-tag { background: var(--gray-100); color: #444; font-size: 14px; padding: 8px 18px; border-radius: 999px; }

.bd-related-section { padding: 60px 0 90px; background: var(--green-pale); }
.bd-related-title { font-family: var(--font-heading); font-size: 26px; font-weight: 700; color: #0E1D16; margin-bottom: 32px; }

@media (max-width: 1024px) {
	.bd-layout { grid-template-columns: 240px 1fr; gap: 32px; }
}
@media (max-width: 900px) {
	.bd-layout { grid-template-columns: 1fr; }
	.bd-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
	.bd-toc { flex-direction: row; flex-wrap: wrap; gap: 4px 18px; }
	.bd-subscribe { flex: 1 1 100%; }
	.bd-back { flex: 1 1 100%; }
}
@media (max-width: 768px) {
	.bd-hero { padding: 40px 0 160px; }
	.bd-banner-wrap { margin-top: -130px; }
	.bd-meta { gap: 10px; }
}
@media (max-width: 480px) {
	.bd-hero { padding: 32px 0 120px; }
	.bd-banner-wrap { margin-top: -96px; }
	.bd-banner { border-radius: 16px; }
	.bd-content p, .bd-content ul li { font-size: 16px; }
	.bd-content h2 { font-size: 22px; }
	.bd-content blockquote { font-size: 20px; }
}

