/* ============================================================
   BHAR India – Blog Post Stylesheet
   blog-post.css | Full responsive, all breakpoints
   ============================================================ */

/* ── Hero ── */
.blog-post-hero {
  background: var(--gradient);
  padding: calc(var(--nav-h) + 52px) 0 60px;
  position: relative;
  overflow: hidden;
}
.blog-post-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23fff' fill-opacity='.04'%3E%3Ccircle cx='30' cy='30' r='12'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.blog-post-hero-inner {
  position: relative; z-index: 1;
  max-width: 820px;
}
.blog-post-hero .breadcrumb { margin-bottom: 20px; flex-wrap: wrap; }
.blog-post-hero .breadcrumb a,
.blog-post-hero .breadcrumb span {
  color: rgba(255,255,255,.75); font-size: 13.5px;
}
.blog-post-hero .breadcrumb a:hover { color: #fff; }
.blog-post-cats { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.blog-post-cat {
  background: rgba(255,255,255,.18); color: #fff;
  padding: 4px 14px; border-radius: 50px;
  font-size: 11.5px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.28);
  white-space: nowrap;
}
.blog-post-hero h1 {
  color: #fff;
  font-size: clamp(1.55rem, 4vw, 2.75rem);
  line-height: 1.2;
  margin-bottom: 20px;
}
.blog-post-meta {
  display: flex; align-items: center;
  gap: 16px; flex-wrap: wrap;
  font-size: 13.5px; color: rgba(255,255,255,.78);
}
.blog-post-meta span { display: flex; align-items: center; gap: 6px; white-space: nowrap; }

/* ── Featured Image ── */
.blog-featured-img {
  width: 100%; border-radius: var(--radius-xl);
  overflow: hidden; margin-bottom: 48px;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 16 / 7;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient-soft);
}
.blog-featured-img svg { width: 100%; height: 100%; display: block; }

/* ── 2-column layout: article + sidebar ── */
.blog-article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  align-items: start;
}

/* ── Article content typography ── */
.blog-article-content h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.65rem);
  margin: 44px 0 16px;
  padding-top: 12px;
  border-top: 2px solid var(--border);
  color: var(--text);
}
.blog-article-content h2:first-child {
  margin-top: 0; border-top: none; padding-top: 0;
}
.blog-article-content h3 {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  margin: 28px 0 12px; color: var(--text);
}
.blog-article-content p {
  margin-bottom: 20px; font-size: 16px;
  line-height: 1.85; color: var(--text-sec);
}
.blog-article-content ul,
.blog-article-content ol { margin: 0 0 20px 20px; }
.blog-article-content li {
  margin-bottom: 9px; font-size: 15.5px;
  color: var(--text-sec); line-height: 1.75;
}
.blog-article-content strong { color: var(--text); font-weight: 600; }
.blog-article-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.blog-article-content blockquote {
  border-left: 4px solid var(--accent);
  background: var(--bg2);
  margin: 28px 0; padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.blog-article-content blockquote p {
  margin: 0; font-size: 16.5px;
  font-style: italic; color: var(--text);
}

/* ── Info / highlight boxes ── */
.info-box {
  background: rgba(30,53,112,.07);
  border: 1px solid rgba(30,53,112,.18);
  border-radius: var(--radius-lg);
  padding: 20px 22px; margin: 28px 0;
}
[data-theme="dark"] .info-box {
  background: rgba(30,53,112,.15);
  border-color: rgba(30,53,112,.35);
}
.info-box h4 { color: var(--primary); margin-bottom: 10px; font-size: 14.5px; }
.info-box p, .info-box li { font-size: 14.5px; color: var(--text-sec); margin-bottom: 6px; }
.highlight-box {
  background: linear-gradient(135deg, rgba(196,98,45,.08), rgba(196,98,45,.04));
  border: 1px solid rgba(196,98,45,.22);
  border-radius: var(--radius-lg);
  padding: 22px 24px; margin: 32px 0;
}
.highlight-box h4 { color: var(--accent); margin-bottom: 10px; }
.highlight-box p, .highlight-box li { font-size: 15px; color: var(--text-sec); margin-bottom: 8px; }

/* ── Stats row ── */
.article-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin: 32px 0;
}
.article-stat {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px; text-align: center;
}
.article-stat-num {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800; font-family: var(--ff-head); color: var(--primary);
}
.article-stat-label { font-size: 12.5px; color: var(--text-muted); margin-top: 4px; line-height: 1.4; }

/* ── Comparison table ── */
.table-scroll { overflow-x: auto; margin: 28px 0; -webkit-overflow-scrolling: touch; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 14px; }
.compare-table th {
  background: var(--gradient); color: #fff;
  padding: 14px 16px; text-align: left;
  font-size: 13px; font-weight: 600; white-space: nowrap;
}
.compare-table th:first-child { border-radius: var(--radius-lg) 0 0 0; }
.compare-table th:last-child  { border-radius: 0 var(--radius-lg) 0 0; }
.compare-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text-sec); vertical-align: top; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: var(--bg2); }
.compare-table .yes  { color: #16a34a; font-weight: 700; }
.compare-table .no   { color: #dc2626; font-weight: 700; }
.compare-table .partial { color: var(--accent); font-weight: 700; }

/* ── Process timeline ── */
.process-timeline { display: flex; flex-direction: column; gap: 0; margin: 32px 0; }
.timeline-step { display: flex; gap: 20px; align-items: flex-start; }
.timeline-line { display: flex; flex-direction: column; align-items: center; }
.timeline-dot {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 14px; flex-shrink: 0;
}
.timeline-connector {
  width: 2px; background: var(--border);
  flex: 1; min-height: 20px; margin: 4px 0;
}
.timeline-content { padding: 0 0 28px; flex: 1; }
.timeline-content h4 { font-size: 15.5px; margin-bottom: 6px; color: var(--text); }
.timeline-content p { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.65; }

/* ── Tech card grid (blog 3) ── */
.tech-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin: 32px 0; }
.tech-card {
  border-radius: var(--radius-lg); padding: 24px 20px;
  text-align: center; border: 1px solid var(--border);
}
.tech-card.rpa { background: rgba(30,53,112,.07); border-color: rgba(30,53,112,.2); }
.tech-card.ai  { background: rgba(196,98,45,.07);  border-color: rgba(196,98,45,.2); }
.tech-card.ml  { background: rgba(22,163,74,.07);   border-color: rgba(22,163,74,.2); }
.tech-card-icon { font-size: 36px; margin-bottom: 12px; }
.tech-card h4   { font-size: 16px; margin-bottom: 8px; }
.tech-card p    { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.6; }

/* ── Sidebar ── */
.blog-sidebar { position: sticky; top: calc(var(--nav-h) + 24px); }
.sidebar-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px; margin-bottom: 22px;
}
.sidebar-card h4 {
  font-size: 14.5px; margin-bottom: 14px; color: var(--text);
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.toc-list { list-style: none; margin: 0; padding: 0; }
.toc-list a {
  display: block; padding: 7px 10px;
  font-size: 13px; color: var(--text-muted);
  border-radius: 7px; transition: var(--transition);
  border-left: 2px solid transparent; line-height: 1.4;
}
.toc-list a:hover { color: var(--primary); background: var(--bg2); border-left-color: var(--primary); }
.related-post {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.related-post:last-child { border-bottom: none; padding-bottom: 0; }
.related-post-icon { font-size: 22px; flex-shrink: 0; line-height: 1; margin-top: 2px; }
.related-post a { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.4; }
.related-post a:hover { color: var(--primary); }
.related-post span { font-size: 11.5px; color: var(--text-muted); display: block; margin-top: 4px; }
.cta-sidebar {
  background: var(--gradient); border-radius: var(--radius-lg);
  padding: 24px 20px; text-align: center; margin-bottom: 22px;
}
.cta-sidebar h4 { color: #fff; font-size: 16px; margin-bottom: 10px; }
.cta-sidebar p  { color: rgba(255,255,255,.78); font-size: 13.5px; margin-bottom: 18px; }
.cta-sidebar .btn { width: 100%; justify-content: center; }

/* ── Author box ── */
.author-box {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 26px 28px; margin-top: 52px;
}
.author-avatar {
  width: 56px; height: 56px; flex-shrink: 0;
  background: var(--gradient); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff; font-weight: 800; font-family: var(--ff-head);
}
.author-info h4 { font-size: 15px; margin-bottom: 4px; }
.author-info .role {
  font-size: 12px; color: var(--accent); font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px;
}
.author-info p { font-size: 13.5px; color: var(--text-muted); margin: 0; }

/* ── Post navigation ── */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.post-nav-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px 20px; transition: var(--transition);
}
.post-nav-item:hover { border-color: var(--border-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.post-nav-item .label {
  font-size: 11px; text-transform: uppercase;
  letter-spacing: .1em; color: var(--text-muted); margin-bottom: 6px;
}
.post-nav-item a { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.4; }
.post-nav-item a:hover { color: var(--primary); }
.post-nav-item.next { text-align: right; }

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* ── 1024px: collapse sidebar under article ── */
@media (max-width: 1024px) {
  .blog-article-layout { grid-template-columns: 1fr; gap: 40px; }
  .blog-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .sidebar-card, .cta-sidebar { margin-bottom: 0; }
}

/* ── 768px – tablets ── */
@media (max-width: 768px) {
  .blog-post-hero {
    padding: calc(var(--nav-h) + 32px) 0 44px;
  }
  .blog-post-meta { gap: 10px; font-size: 12.5px; }
  .blog-featured-img {
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
    aspect-ratio: 16 / 8;
  }
  .blog-article-content h2 { margin-top: 36px; }
  .blog-article-content p,
  .blog-article-content li { font-size: 15px; }
  .blog-article-content blockquote { padding: 16px 18px; }
  .article-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .article-stat  { padding: 14px 12px; }
  .blog-sidebar  { grid-template-columns: 1fr; }
  .author-box    { padding: 20px 22px; gap: 16px; }
  .post-nav      { gap: 14px; }
  .tech-cards    { grid-template-columns: 1fr; gap: 14px; }
  .info-box      { padding: 16px 18px; }
  .highlight-box { padding: 18px 20px; }
}

/* ── 600px – mobile ── */
@media (max-width: 600px) {
  .blog-post-hero { padding: calc(var(--nav-h) + 24px) 0 36px; }
  .blog-post-hero h1 { font-size: clamp(1.35rem, 6vw, 1.8rem); }
  .blog-post-meta { flex-direction: column; align-items: flex-start; gap: 6px; }
  .blog-post-cats { gap: 6px; }
  .blog-post-cat  { font-size: 10.5px; padding: 3px 10px; }
  .blog-featured-img {
    border-radius: var(--radius);
    margin-bottom: 24px;
    aspect-ratio: 4 / 3;
  }
  .article-stats { grid-template-columns: 1fr 1fr; }
  .author-box { flex-direction: column; padding: 20px; gap: 14px; }
  .author-avatar { width: 48px; height: 48px; font-size: 18px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-item.next { text-align: left; }
  .timeline-dot { width: 30px; height: 30px; font-size: 12px; }
  .timeline-content { padding-bottom: 20px; }
  .info-box    { padding: 14px 16px; }
  .highlight-box { padding: 14px 16px; }
  .info-box h4, .highlight-box h4 { font-size: 13.5px; }
  .info-box li, .info-box p, .highlight-box li, .highlight-box p { font-size: 13.5px; }
}

/* ── 480px – small phones ── */
@media (max-width: 480px) {
  .blog-post-hero { padding: calc(var(--nav-h) + 20px) 0 30px; }
  .blog-featured-img { aspect-ratio: 3 / 2; }
  .article-stats { grid-template-columns: 1fr; }
  .article-stat-num { font-size: 1.6rem; }
  .blog-article-content p { font-size: 14.5px; }
  .blog-article-content li { font-size: 14.5px; }
  .blog-article-content blockquote p { font-size: 15px; }
  .cta-sidebar { padding: 20px 18px; }
  .post-nav-item { padding: 14px 16px; }
  .post-nav-item a { font-size: 13.5px; }
}
