/* ─── Coorg Blog Post Design ─── */
/* Unique reading-optimized design for blog posts */

:root {
  --blog-accent: #f59e0b;
  --blog-accent-dark: #d97706;
  --blog-accent-light: #fef3c7;
  --blog-accent-gradient: linear-gradient(135deg, #f59e0b, #d97706);
  --blog-bg: #faf9f7;
  --blog-card-bg: #fff;
  --blog-text: #1c1917;
  --blog-text-muted: #78716c;
  --blog-border: #e7e5e4;
  --blog-width: 740px;
}

/* ─── Blog Hero ─── */
.blog-hero {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, #1c1917 0%, #292524 40%, #44403c 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.blog-hero::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(245,158,11,.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 30%, rgba(217,119,6,.05) 0%, transparent 50%);
  pointer-events: none;
}
.blog-hero .breadcrumb { justify-content: center; }
.blog-hero .breadcrumb a { color: rgba(255,255,255,.5); }
.blog-hero .breadcrumb span { color: rgba(255,255,255,.3); }
.blog-hero .blog-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(245,158,11,.15); color: #f59e0b;
  font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 2px;
  padding: 6px 18px; border-radius: 9999px; margin-bottom: 20px;
  position: relative; z-index: 1;
}
.blog-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900;
  color: #fff; line-height: 1.2; max-width: 800px; margin: 0 auto 16px;
  font-family: var(--font-heading); position: relative; z-index: 1;
}
.blog-hero h1 span { background: var(--blog-accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.blog-hero .blog-hero-meta {
  display: flex; justify-content: center; align-items: center; gap: 20px;
  color: rgba(255,255,255,.5); font-size: .88rem; position: relative; z-index: 1;
  flex-wrap: wrap;
}
.blog-hero .blog-hero-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.3); }
.blog-hero .blog-hero-meta .read-time {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(245,158,11,.12); color: #f59e0b;
  padding: 4px 14px; border-radius: 9999px; font-size: .82rem; font-weight: 500;
}
.blog-hero .blog-hero-shape {
  position: absolute; border-radius: 50%; opacity: .03; pointer-events: none;
}
.blog-hero .blog-hero-shape.s1 { width: 300px; height: 300px; background: #f59e0b; top: -100px; right: -80px; }
.blog-hero .blog-hero-shape.s2 { width: 200px; height: 200px; background: #d97706; bottom: -60px; left: -60px; }

/* ─── Blog Layout ─── */
.blog-wrapper {
  display: grid;
  grid-template-columns: 1fr var(--blog-width) 1fr;
  gap: 40px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 50px 24px;
  position: relative;
}
@media (max-width: 1024px) {
  .blog-wrapper { grid-template-columns: 1fr; max-width: var(--blog-width); }
}

/* ─── Blog Content ─── */
.blog-article {
  background: var(--blog-card-bg);
  border-radius: 20px;
  padding: 50px 56px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
@media (max-width: 768px) {
  .blog-article { padding: 30px 24px; border-radius: 0; margin: 0 -24px; }
}

.blog-article h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem; font-weight: 800; color: var(--blog-text);
  margin: 44px 0 16px; line-height: 1.3;
  position: relative;
}
.blog-article h2::before {
  content: '';
  position: absolute; left: -24px; top: 4px;
  width: 4px; height: 28px;
  background: var(--blog-accent-gradient);
  border-radius: 2px;
}
@media (max-width: 768px) { .blog-article h2::before { left: -16px; } }

.blog-article h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem; font-weight: 700; color: var(--blog-text);
  margin: 30px 0 10px;
}

.blog-article p {
  color: #57534e; font-size: 1.05rem;
  line-height: 1.85; margin-bottom: 16px;
}

.blog-article ul, .blog-article ol {
  padding-left: 24px; margin-bottom: 20px;
  color: #57534e; font-size: 1.05rem; line-height: 1.85;
}
.blog-article li { margin-bottom: 8px; }
.blog-article li::marker { color: var(--blog-accent); }

.blog-article strong { color: var(--blog-text); font-weight: 600; }

.blog-article a {
  color: #d97706; font-weight: 600; text-decoration: underline;
  text-underline-offset: 3px; transition: color .2s;
}
.blog-article a:hover { color: #b45309; }

/* ─── Blog Highlight Box ─── */
.blog-highlight {
  background: var(--blog-accent-light);
  border-left: 4px solid var(--blog-accent);
  padding: 20px 24px; border-radius: 0 12px 12px 0;
  margin: 24px 0;
}
.blog-highlight p { color: #92400e; margin: 0; font-size: .95rem; }
.blog-highlight strong { color: #78350f; }

/* ─── Blog Stat Grid ─── */
.blog-stats {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 16px;
  margin: 28px 0;
}
.blog-stat {
  background: var(--blog-bg); border-radius: 14px;
  padding: 20px; text-align: center;
}
.blog-stat .num { font-size: 1.6rem; font-weight: 800; color: var(--blog-accent-dark); font-family: var(--font-heading); }
.blog-stat .label { font-size: .82rem; color: var(--blog-text-muted); margin-top: 4px; }
@media (max-width: 480px) { .blog-stats { grid-template-columns: 1fr; } }

/* ─── Related Posts ─── */
.blog-related {
  padding: 0 24px 60px;
  max-width: var(--blog-width);
  margin: 0 auto;
}
.blog-related h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem; font-weight: 800; color: var(--blog-text);
  margin-bottom: 24px; text-align: center;
}
.blog-related-grid {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 20px;
}
@media (max-width: 600px) { .blog-related-grid { grid-template-columns: 1fr; } }
.blog-related-card {
  background: var(--blog-card-bg); border: 1px solid var(--blog-border);
  border-radius: 14px; padding: 22px; transition: all .3s;
  text-decoration: none; color: inherit;
}
.blog-related-card:hover {
  transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,.06);
  border-color: var(--blog-accent);
}
.blog-related-card .cat {
  font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
  color: var(--blog-accent); margin-bottom: 8px;
}
.blog-related-card h4 { font-size: .95rem; font-weight: 700; line-height: 1.4; margin-bottom: 6px; }
.blog-related-card p { font-size: .85rem; color: var(--blog-text-muted); line-height: 1.5; margin: 0; }

/* ─── Author Bio ─── */
.blog-author {
  display: flex; align-items: center; gap: 18px;
  padding: 24px; margin-top: 40px;
  background: var(--blog-bg); border-radius: 14px;
}
.blog-author-avatar {
  width: 56px; height: 56px; flex-shrink: 0;
  background: var(--blog-accent-gradient); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 1.2rem;
}
.blog-author-info h4 { font-size: .95rem; font-weight: 700; margin-bottom: 2px; }
.blog-author-info p { font-size: .85rem; color: var(--blog-text-muted); margin: 0; line-height: 1.5; }

/* ─── Blog CTA ─── */
.blog-cta {
  background: linear-gradient(135deg, #1c1917, #292524);
  border-radius: 16px; padding: 36px; text-align: center;
  margin-top: 40px;
}
.blog-cta h3 { color: #fff; font-family: var(--font-heading); font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }
.blog-cta p { color: rgba(255,255,255,.6); font-size: .92rem; margin-bottom: 20px; }
.blog-cta a {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blog-accent-gradient); color: #fff;
  padding: 12px 28px; border-radius: 9999px; font-weight: 600;
  text-decoration: none; transition: all .3s;
}
.blog-cta a:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(245,158,11,.3); }

/* ─── Sidebar TOC ─── */
.blog-toc {
  position: sticky; top: 100px;
  padding: 24px; background: var(--blog-card-bg);
  border: 1px solid var(--blog-border); border-radius: 14px;
  max-height: calc(100vh - 140px); overflow-y: auto;
}
.blog-toc h4 { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--blog-text-muted); margin-bottom: 16px; }
.blog-toc a {
  display: block; font-size: .85rem; color: var(--blog-text-muted);
  padding: 6px 0; text-decoration: none; transition: color .2s;
  border-bottom: 1px solid var(--blog-border);
}
.blog-toc a:last-child { border-bottom: none; }
.blog-toc a:hover { color: var(--blog-accent); }
@media (max-width: 1024px) { .blog-toc { display: none; } }

/* ─── Blog Layout for Type B (page-header) Posts ─── */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}
.blog-layout .blog-main {
  min-width: 0;
  background: var(--blog-card-bg);
  border-radius: 20px;
  padding: 50px 56px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.blog-layout .blog-sidebar {
  position: sticky; top: 100px;
}
@media (max-width: 1100px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-layout .blog-sidebar { display: none; }
}
@media (max-width: 768px) {
  .blog-layout .blog-main { padding: 30px 24px; border-radius: 0; margin: 0 -24px; }
}

/* ─── Recent Posts Sidebar ─── */
.blog-sidebar {
  position: sticky; top: 100px;
  padding: 24px; background: var(--blog-card-bg);
  border: 1px solid var(--blog-border); border-radius: 14px;
  max-height: calc(100vh - 140px); overflow-y: auto;
}
.blog-sidebar h4 {
  font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
  color: var(--blog-text-muted); margin-bottom: 16px;
  padding-bottom: 12px; border-bottom: 2px solid var(--blog-accent);
}
.blog-sidebar-item {
  display: block; text-decoration: none; color: inherit;
  padding: 14px 0; border-bottom: 1px solid var(--blog-border);
  transition: all .2s;
}
.blog-sidebar-item:last-child { border-bottom: none; }
.blog-sidebar-item:hover { padding-left: 8px; }
.blog-sidebar-item .sbi-title {
  font-size: .88rem; font-weight: 600; color: var(--blog-text);
  line-height: 1.35; margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-sidebar-item:hover .sbi-title { color: var(--blog-accent); }
.blog-sidebar-item .sbi-excerpt {
  font-size: .78rem; color: var(--blog-text-muted);
  line-height: 1.5; margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-sidebar-item .sbi-link {
  font-size: .78rem; font-weight: 600; color: var(--blog-accent);
  display: inline-flex; align-items: center; gap: 4px;
  transition: gap .2s;
}
.blog-sidebar-item:hover .sbi-link { gap: 8px; }
@media (max-width: 1024px) { .blog-sidebar { display: none; } }

/* ─── Blog FAQ ─── */
.blog-faq-item {
  border: 1px solid var(--blog-border); border-radius: 12px;
  margin-bottom: 10px; overflow: hidden;
}
.blog-faq-q {
  padding: 16px 20px; cursor: pointer; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; transition: background .2s;
}
.blog-faq-q:hover { background: var(--blog-bg); }
.blog-faq-q .icon { font-size: 1.2rem; color: var(--blog-accent); transition: transform .3s; flex-shrink: 0; }
.blog-faq-item.open .blog-faq-q .icon { transform: rotate(45deg); }
.blog-faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease; padding: 0 20px; color: #57534e; font-size: .92rem; line-height: 1.7; }
.blog-faq-item.open .blog-faq-a { max-height: 300px; padding: 0 20px 16px; }

/* ─── Continue Reading (Previous / Next Blog) ─── */
.blog-continue {
  max-width: var(--blog-width);
  margin: 0 auto;
  padding: 0 24px 60px;
}
.blog-continue h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem; font-weight: 800; color: var(--blog-text);
  margin-bottom: 24px; text-align: center;
}
.blog-continue-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
@media (max-width: 600px) { .blog-continue-grid { grid-template-columns: 1fr; } }
.blog-continue-card {
  background: var(--blog-card-bg); border: 1px solid var(--blog-border);
  border-radius: 14px; padding: 22px; transition: all .3s;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 8px;
}
.blog-continue-card:hover {
  transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,.06);
  border-color: var(--blog-accent);
}
.blog-continue-card .bcc-label {
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--blog-accent);
}
.blog-continue-card.next .bcc-label { text-align: right; }
.blog-continue-card .bcc-title {
  font-size: .95rem; font-weight: 700; line-height: 1.4; color: var(--blog-text);
}
.blog-continue-card.next .bcc-title { text-align: right; }
.blog-continue-card .bcc-link {
  font-size: .85rem; font-weight: 600; color: var(--blog-accent-dark);
  display: inline-flex; align-items: center; gap: 4px; transition: gap .2s;
}
.blog-continue-card.next .bcc-link { justify-content: flex-end; }
.blog-continue-card:hover .bcc-link { gap: 8px; }
.blog-continue-card.single { grid-column: 1 / -1; justify-self: center; max-width: 100%; }
@media (min-width: 601px) { .blog-continue-card.single { max-width: calc(50% - 10px); } }
