/* Blog / Learn (blog.php, blog_post.php). Uses the public-site tokens from site2.css. */
.blog-search { display: flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid var(--t-line, #e0e8ea); border-radius: 999px; padding: .35rem .4rem .35rem 1rem; box-shadow: var(--t-sh-sm, 0 1px 3px rgba(0,0,0,.06)); max-width: 560px; margin: 0 auto; }
.blog-search i { color: #5b6d74; }
.blog-search input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 1rem; min-width: 0; }
.blog-search .btn { border-radius: 999px; padding: .45rem 1.2rem; }

.blog-filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.blog-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.blog-pill { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .85rem; border: 1px solid var(--t-line, #e0e8ea); border-radius: 999px; background: #fff; color: #0e1d22; font-weight: 600; font-size: .88rem; text-decoration: none; transition: border-color .15s, background .15s; }
.blog-pill span { font-size: .75rem; color: #5b6d74; background: #eef3f3; border-radius: 999px; padding: 0 .45rem; }
.blog-pill:hover { border-color: #128c7e; color: #0a6d62; }
.blog-pill.active { background: #128c7e; border-color: #128c7e; color: #fff; }
.blog-pill.active span { background: rgba(255,255,255,.22); color: #fff; }
.blog-sort { display: flex; align-items: center; }
.blog-sort select { width: auto; }

.blog-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-bottom: 1.5rem; }
.blog-tag { font-size: .82rem; color: #0a6d62; background: #e3f5f1; border-radius: 999px; padding: .15rem .65rem; text-decoration: none; }
.blog-tag:hover, .blog-tag.active { background: #128c7e; color: #fff; }

.blog-cat { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #0a6d62; text-decoration: none; }
.blog-meta { font-size: .85rem; color: #5b6d74; }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.5rem; }
.blog-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--t-line, #e0e8ea); border-radius: 16px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(15,23,42,.09); }
.blog-card-img { display: block; aspect-ratio: 3 / 2; background: #e3f5f1; }
.blog-card-img img, .blog-feature-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 160px; font-size: 3rem; color: #128c7e; background: linear-gradient(135deg, #e3f5f1, #cfeee8); }
.blog-card-body { padding: 1.1rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.blog-card-title { font-size: 1.12rem; font-weight: 700; line-height: 1.35; margin: 0; }
.blog-card-title a, .blog-feature h2 a { color: #0e1d22; text-decoration: none; }
.blog-card-title a:hover, .blog-feature h2 a:hover { color: #0a6d62; }
.blog-card-text { color: #475569; font-size: .92rem; margin: 0; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.blog-feature { display: grid; grid-template-columns: 1.1fr 1fr; background: #fff; border: 1px solid var(--t-line, #e0e8ea); border-radius: 20px; overflow: hidden; margin-bottom: 2rem; box-shadow: 0 6px 24px -6px rgba(10,50,55,.12); }
.blog-feature-img { display: block; aspect-ratio: 3 / 2; background: #e3f5f1; }
.blog-feature-body { padding: 2rem; display: flex; flex-direction: column; justify-content: center; }
.blog-feature h2 { font-size: 1.7rem; font-weight: 800; line-height: 1.25; margin: .4rem 0 .75rem; }
.blog-feature p { color: #475569; }
@media (max-width: 767.98px) { .blog-feature { grid-template-columns: 1fr; } .blog-feature-body { padding: 1.25rem; } .blog-feature h2 { font-size: 1.35rem; } }

/* article */
.blog-head { max-width: 820px; padding-top: 1.5rem; padding-bottom: 1.25rem; }
.blog-head h1 { font-size: clamp(1.8rem, 4.5vw, 2.7rem); font-weight: 800; line-height: 1.2; margin: .4rem 0 .8rem; }
.blog-lead { font-size: 1.15rem; color: #475569; margin-bottom: .75rem; }
.blog-cover { max-width: 960px; margin-bottom: 2rem; }
.blog-cover img { width: 100%; height: auto; border-radius: 18px; display: block; border: 1px solid var(--t-line, #e0e8ea); }
.blog-layout { max-width: 760px; margin: 0 auto; padding-bottom: 3rem; }
.blog-body .prose { font-size: 1.07rem; }
.blog-body .prose h2 { margin-top: 2.4rem; }
.blog-body .prose h3 { font-size: 1.25rem; font-weight: 700; margin: 1.8rem 0 .6rem; scroll-margin-top: 80px; }
.blog-body .prose p, .blog-body .prose li { line-height: 1.8; }
.blog-body .prose a { color: #0a6d62; }
.blog-fig { margin: 1.8rem 0; }
.blog-fig img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--t-line, #e0e8ea); display: block; }
.blog-fig figcaption { text-align: center; font-size: .86rem; color: #5b6d74; margin-top: .5rem; }
.blog-body blockquote { border-left: 4px solid #25d366; background: #f5f8f8; margin: 1.6rem 0; padding: 1rem 1.25rem; border-radius: 0 12px 12px 0; font-size: 1.1rem; font-style: italic; color: #0e1d22; }
.blog-callout { display: flex; gap: .85rem; background: #fff8e1; border: 1px solid #fde9a8; border-radius: 12px; padding: 1rem 1.2rem; margin: 1.6rem 0; }
.blog-callout > i { color: #d99a00; font-size: 1.3rem; margin-top: .1rem; }
.blog-callout > div { color: #4a3b00; line-height: 1.7; }
.blog-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; background: linear-gradient(135deg, #075e54, #128c7e); color: #fff; border-radius: 16px; padding: 1.25rem 1.5rem; margin: 2rem 0; }
.blog-cta strong { display: block; font-size: 1.1rem; }
.blog-cta span { opacity: .85; font-size: .92rem; }
.blog-cta .btn { background: #fff; color: #075e54; font-weight: 700; }
.blog-body hr { margin: 2rem 0; opacity: .15; }
.blog-share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; border-top: 1px solid var(--t-line, #e0e8ea); margin-top: 2rem; padding-top: 1.25rem; }

/* ---------- language toggle (English / मराठी) ---------- */
#learnRoot[data-lang="en"] .l-mr, #learnRoot[data-lang="mr"] .l-en { display: none !important; }
#learnRoot[data-lang="mr"], #learnRoot .l-mr, #learnRoot [lang="mr"] { font-family: "Noto Sans Devanagari", Inter, system-ui, sans-serif; }
#learnRoot[data-lang="mr"] .blog-head h1, #learnRoot[data-lang="mr"] .blog-card-title, #learnRoot[data-lang="mr"] .blog-feature h2 { line-height: 1.45; }
#learnRoot[data-lang="mr"] .prose p, #learnRoot[data-lang="mr"] .prose li { line-height: 1.95; }
.lang-switch { display: inline-flex; background: #fff; border: 1px solid var(--t-line, #e0e8ea); border-radius: 999px; padding: 3px; margin-bottom: 1.25rem; box-shadow: 0 1px 3px rgba(10,40,45,.06); }
.lang-switch button { border: 0; background: transparent; padding: .38rem 1.1rem; border-radius: 999px; font-weight: 700; font-size: .9rem; color: #475569; cursor: pointer; transition: background .15s, color .15s; font-family: inherit; }
.lang-switch button.on { background: #128c7e; color: #fff; box-shadow: 0 2px 8px rgba(18,140,126,.35); }
.lang-switch button:not(.on):hover { color: #0a6d62; }
.lang-switch-sm { margin: 0; }
.lang-switch-sm button { padding: .28rem .85rem; font-size: .84rem; }

/* ---------- article images ---------- */
.blog-fig a { display: block; cursor: zoom-in; }
.blog-fig img { background: #f5f8f8; }
.blog-body .prose h2 { font-size: clamp(1.35rem, 3.2vw, 1.65rem); }
.blog-body .prose { overflow-wrap: anywhere; }
.blog-body .table-responsive { margin: 1.5rem 0; }
@media (max-width: 575.98px) {
  .blog-head { padding-top: 1rem; }
  .blog-body .prose { font-size: 1rem; }
  .blog-fig { margin: 1.3rem -.5rem; }
  .blog-fig img { border-radius: 10px; }
  .blog-search { padding-left: .8rem; }
  .blog-search .btn { padding: .4rem .9rem; }
  .blog-pills { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: none; }
  .blog-pills::-webkit-scrollbar { display: none; }
  .blog-pill { white-space: nowrap; }
  .blog-cta { text-align: center; justify-content: center; }
}
