/* Blog article presentation, including the Everyday Tamil lesson variants. */
.blog-post-page { background: #fff; color: #242424; }
.blog-post-page p { text-align: left; hyphens: none; }
.post-hero { width: 100%; background: radial-gradient(ellipse at 20% 190%, #780000 0 45%, transparent 45.5%), radial-gradient(ellipse at 85% 180%, #880000 0 45%, transparent 45.5%), #a10000; color: #fff; text-align: center; padding: 32px 28px; }
.post-hero p { max-width: 1000px; margin: 0 auto; color: #fff; font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.6; text-align: center; }
.post-breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; max-width: 1160px; width: calc(100% - 56px); margin: 16px auto; font-size: .95rem; line-height: 1.6; }
.post-breadcrumb a { color: #a10000; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.post-breadcrumb span[aria-current] { color: #444; overflow-wrap: anywhere; }
.blog-post-page main.container, .blog-post-page main > .container { width: min(1160px, calc(100% - 56px)); max-width: 1160px; padding: 0; margin: 0 auto 40px; }
.blog-post-page .blog-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(240px, 1.1fr); gap: 34px; align-items: start; }
.blog-post-page .blog-main, .blog-post-page .blog-sidebar, .blog-post-page .ql-sidebar { margin: 0; min-width: 0; }
.blog-post-page .article-full { min-width: 0; }
.blog-post-page .article-full figure { margin: 0 0 24px; }
.blog-post-page .article-full figure img { display: block; width: 100%; height: auto; border-radius: 16px; }
.blog-post-page .article-full header { margin-bottom: 24px; }
.blog-post-page .article-full h1 { font: 700 clamp(1.8rem, 3vw, 2.45rem)/1.25 Georgia, 'Latha', serif; color: #191919; margin: 0 0 12px; }
.blog-post-page .article-full .article-meta { margin: 0; color: #606060; font-size: .95rem; }
.blog-post-page .article-full p { font-size: 1.05rem; line-height: 1.8; margin: 16px 0; overflow-wrap: break-word; }
.blog-post-page .article-full .article-intro { border-left: 3px solid #a10000; padding-left: 22px; margin: 24px 0; color: #303030; font-size: 1.1rem; font-weight: 400; }
.blog-post-page .article-full h2 { font-size: 1.7rem; color: #a10000; line-height: 1.4; margin: 30px 0 14px; }
.blog-post-page .article-full > h3 { background: transparent; border-left: 3px solid #a10000; padding: 0 0 0 14px; font: 700 1.3rem/1.55 Georgia, 'Latha', serif; color: #292929; margin: 24px 0 10px; }
.blog-post-page .article-full li { font-size: 1.05rem; line-height: 1.75; }
.blog-post-page .article-full blockquote { background: #fcecec; border-left: 3px solid #a10000; border-radius: 10px; margin: 24px 0; padding: 18px 22px; }
.blog-post-page .sidebar-widget { background: #f8f7f7; padding: 22px; border-radius: 16px; margin-bottom: 16px; }
.blog-post-page .sidebar-widget h3 { margin: 0 0 10px; padding: 0 0 14px; border-bottom: 1px solid #e7e2e2; font-size: 1.3rem; color: #a10000; }
.blog-post-page .recent-posts li { margin: 0; border-bottom: 1px solid #e7e2e2; }
.blog-post-page .recent-posts li:last-child { border-bottom: 0; }
.blog-post-page .recent-posts a { display: block; min-height: 44px; padding: 12px 0; font-size: 1rem; line-height: 1.5; color: #333; text-decoration: none; }
.blog-post-page .recent-posts a:hover { color: #a10000; text-decoration: underline; text-underline-offset: 3px; }
.post-all-articles { display: block; padding: 12px 18px; background: #fbecec; color: #a10000; text-align: center; border-radius: 8px; font-size: 1rem; font-weight: 700; text-decoration: none; }
.post-all-articles:hover { background: #f5dcdc; }
.blog-post-page .article-full .quiz-section { padding: 24px; background: #fcf2f2; border: 1px solid #f0dddd; border-radius: 16px; margin-top: 32px; }
.blog-post-page .quiz-question { border-bottom-color: #e7d6d6; padding-bottom: 20px; }
.blog-post-page .quiz-options li { background: #fff; border: 1px solid #ded8d8; border-radius: 7px; padding: 10px 14px; }
.blog-post-page .toggle-answer-btn, .blog-post-page .article-full .cta-button { min-height: 44px; background: #a10000; color: #fff; padding: 11px 22px; border-radius: 8px; font: 700 1rem/1.5 var(--english-font); }
.blog-post-page .toggle-answer-btn:hover, .blog-post-page .article-full .cta-button:hover { background: #780000; transform: none; }
.blog-post-page .quiz-answer { background: #f1f7f2; border-color: #c4d9c8; }
.blog-post-page .article-full .example-item { background: #fbf5f5; border-radius: 0 10px 10px 0; }
.blog-post-page .article-full table { box-shadow: none; border: 1px solid #dedede; font-size: 1rem; }
.blog-post-page .article-full table th { background: #eee; color: #303030; }
.blog-post-page .article-full table :is(th,td) { border: 1px solid #dedede; padding: 12px; }
.blog-post-page :is(a,button,select):focus-visible { outline: 3px solid #a10000; outline-offset: 4px; }
.blog-post-page #main-footer { margin-top: 0; }
.blog-post-page .post-contents h2, .blog-post-page .sidebar-widget h3 { font: 700 1.45rem/1.3 Georgia, 'Latha', serif; color: #a10000; }
.blog-post-page .post-contents h2 { margin: 0 0 12px; }
.post-contents ol { list-style: none; counter-reset: post-section; padding: 0; margin: 0; }
.post-contents li { counter-increment: post-section; border-top: 1px solid #e7e2e2; }
.post-contents a { display: flex; gap: 12px; padding: 10px 0; min-height: 44px; font-size: .95rem; line-height: 1.5; text-decoration: none; color: #333; }
.post-contents a::before { content: counter(post-section, decimal-leading-zero); flex: 0 0 22px; color: #a10000; font-weight: 700; }
.post-contents a:hover { color: #a10000; text-decoration: underline; }
.post-reading-progress { padding-top: 16px; margin-top: 12px; border-top: 1px solid #e7e2e2; }
.post-reading-progress > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .95rem; margin-bottom: 10px; }
.post-reading-progress progress { display: block; appearance: none; width: 100%; height: 8px; border: 0; background: #ddd; border-radius: 8px; overflow: hidden; accent-color: #a10000; }
.post-reading-progress progress::-webkit-progress-bar { background: #ddd; border-radius: 8px; }
.post-reading-progress progress::-webkit-progress-value { background: #a10000; border-radius: 8px; }
.post-reading-progress progress::-moz-progress-bar { background: #a10000; border-radius: 8px; }
.blog-post-page .article-full :is(h2,h3), .post-quiz-anchor { scroll-margin-top: 110px; }
.post-related { width: min(1160px, calc(100% - 56px)); margin: 32px auto 0; padding-bottom: 28px; }
.blog-post-page main.container > .post-related { width: 100%; }
.post-related > h2 { padding-left: 14px; border-left: 5px solid #a10000; font: 700 1.6rem/1.3 Georgia, serif; }
.post-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.post-related-card { display: flex; align-items: center; gap: 14px; border-radius: 10px; padding: 12px; background: #faf0f0; color: #242424; text-decoration: none; min-width: 0; }
.post-related-card img { width: 100px; height: 78px; object-fit: cover; border-radius: 7px; flex-shrink: 0; }
.post-related-card h3 { font-size: 1rem; line-height: 1.4; margin: 0; }
.post-related-card:hover h3 { color: #a10000; text-decoration: underline; }
@media (max-width: 1000px) {
  .post-related-grid { grid-template-columns: minmax(0, 1fr); }
}
/* Keep series navigation, lesson IDs and practice sections in their existing structure. */
.blog-post-page main.everyday-tamil { padding-top: 0; }
.blog-post-page .lesson-hero { padding: 28px; background: #a10000; border-radius: 14px; border: 0; color: #fff; }
.blog-post-page .lesson-hero h1 { color: #fff; font: 700 clamp(1.9rem, 3.5vw, 2.7rem)/1.25 Georgia, 'Latha', serif; }
.blog-post-page .lesson-hero .lesson-eyebrow, .blog-post-page .lesson-hero .lesson-meta { color: #fff; }
.blog-post-page main.everyday-tamil > nav[aria-label="Breadcrumb"] { margin: 0; padding: 24px 0; font-size: 1rem; line-height: 1.7; }
.blog-post-page .lesson-content h2 { background: #fcf0f0; padding: 12px 16px; border-radius: 9px; }
.blog-post-page .lesson-content .lesson-word { border-color: #e7dfdf; }
.blog-post-page .lesson-sidebar { background: #faf7f7; border: 1px solid #eee1e1; border-radius: 14px; padding: 20px; }
.blog-post-page .lesson-content .lesson-practice { background: #fcf0f0; border-radius: 14px; }
@media (max-width: 850px) {
  .blog-post-page .blog-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .blog-post-page .blog-main, .blog-post-page .blog-sidebar, .blog-post-page .ql-sidebar { grid-column: auto; }
}
@media (max-width: 600px) {
  .post-hero { padding: 28px 20px; text-align: left; }
  .post-hero p { text-align: left; font-size: 1rem; }
  .post-breadcrumb { width: calc(100% - 40px); gap: 8px; margin: 12px auto 20px; }
  .post-related { width: calc(100% - 40px); }
  .blog-post-page main.container, .blog-post-page main > .container { width: calc(100% - 40px); max-width: none; }
  .blog-post-page .article-full figure img { border-radius: 12px; }
  .blog-post-page .article-full h1 { font-size: 1.75rem; }
  .blog-post-page .article-full p { font-size: 1rem; }
  .blog-post-page .article-full .article-intro { padding-left: 16px; font-size: 1rem; }
  .blog-post-page .article-full > h3 { font-size: 1.1rem; padding: 10px 12px; }
  .blog-post-page .article-full .quiz-section { padding: 18px; }
  .blog-post-page .article-full table { display: block; max-width: 100%; overflow-x: auto; }
  .blog-post-page .lesson-hero { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { .blog-post-page .toggle-answer-btn, .blog-post-page .cta-button { transition: none; } }
