/* ============================================
   DR. SATISH MODH — Blog Pages Stylesheet
   (blog.php & blog-post.php)
   ============================================ */

/* ============ BLOG HERO ============ */
.blog-hero {
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  padding: 140px 0 72px;
  position: relative;
  overflow: hidden;
}

.blog-hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: var(--bg);
}
.blog-hero-gradient {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 10% 40%, rgba(184,146,75,0.1) 0%, transparent 55%),
    radial-gradient(circle at 90% 60%, rgba(14,23,48,0.05) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}
.blog-hero-inner { position: relative; z-index: 2; }

.blog-hero-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1.1;
  margin: 1rem 0;
  max-width: 22ch;
}
.blog-hero-sub {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--muted);
  max-width: 52ch;
  line-height: 1.7;
  margin-bottom: 0.8rem;
}
.blog-hero-count {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
}

/* ============ FILTER TABS ============ */
.blog-filter-section {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 0;
  position: sticky;
  top: 70px;
  z-index: 100;
}
.filter-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0;
}
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tab {
  display: inline-block;
  padding: 0.9rem 1.4rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.filter-tab:hover { color: var(--ink); }
.filter-tab.active { color: var(--gold); border-bottom-color: var(--gold); font-weight: 600; }

/* ============ BLOG LIST SECTION ============ */
.blog-list-section { background: var(--bg-alt); }

.no-posts {
  text-align: center;
  padding: 5rem 1rem;
  color: var(--muted);
}
.no-posts a { color: var(--gold); font-weight: 500; }

/* Featured Card */
.blog-featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: clamp(32px, 5vw, 56px);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.4s var(--ease-out);
}
.blog-featured-card:hover { box-shadow: var(--shadow-md); }

.featured-cover-link {
  display: block;
  min-height: 320px;
  position: relative;
  text-decoration: none;
  transition: opacity 0.3s;
}
.featured-cover-link:hover { opacity: 0.9; }
.feat-label {
  position: absolute;
  top: 1.2rem; left: 1.2rem;
  background: rgba(14,23,48,0.75);
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.featured-body {
  padding: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-title {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 500;
  line-height: 1.2;
  margin: 0.8rem 0;
}
.featured-title a { color: var(--ink); transition: color 0.25s; }
.featured-title a:hover { color: var(--gold); }
.featured-excerpt {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 1.5rem;
  flex: 1;
}

/* Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 28px);
}
.blog-grid-sm { margin-top: 2.5rem; }

/* Blog Card Vertical */
.blog-card-v {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.4s var(--ease-out);
}
.blog-card-v:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.card-cover-link {
  display: block;
  aspect-ratio: 16/9;
  transition: opacity 0.3s;
}
.card-cover-link:hover { opacity: 0.88; }

.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-title {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  font-weight: 500;
  font-style: italic;
  margin: 0.6rem 0 0.5rem;
  line-height: 1.3;
}
.card-title a { color: var(--ink); transition: color 0.25s; }
.card-title a:hover { color: var(--gold); }
.card-excerpt {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

/* Shared meta elements */
.post-meta-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
}
.cat-pill {
  display: inline-block;
  padding: 0.18rem 0.65rem;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.cat-pill-light {
  background: rgba(255,255,255,0.2);
  color: var(--gold-light);
}
.meta-dot  { color: var(--line); font-size: 0.8rem; }
.read-time { font-size: 0.78rem; color: var(--muted); }
.pub-date  { font-size: 0.78rem; color: var(--muted); }

.read-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: color 0.25s;
}
.read-link svg { width: 16px; height: 16px; transition: transform 0.3s; }
.read-link:hover { color: var(--gold); }
.read-link:hover svg { transform: translateX(4px); }

.read-link-sm {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gold);
  transition: color 0.2s;
}
.read-link-sm:hover { color: var(--ink); }

/* Pagination */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: clamp(40px, 5vw, 64px);
  flex-wrap: wrap;
}
.pg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 0.9rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  transition: all 0.25s var(--ease);
}
.pg-btn:hover      { border-color: var(--gold); color: var(--gold); }
.pg-active         { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pg-prev, .pg-next { padding: 0 1.2rem; }

/* ============ ARTICLE PAGE ============ */
.blog-post-page .site-nav {
  background: rgba(8, 16, 43, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.blog-post-page .brand-mark {
  border-color: rgba(243,240,232,0.42);
  color: #fff;
}

.blog-post-page .brand-name,
.blog-post-page .navbar-nav .nav-link {
  color: rgba(255,255,255,0.88);
}

.blog-post-page .navbar-nav .nav-link:hover,
.blog-post-page .navbar-nav .nav-link.active {
  color: var(--gold-light);
}

.article-header {
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  padding: 168px 0 0;
  position: relative;
  overflow: hidden;
}
.article-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8,16,43,0.88) 0%, rgba(8,16,43,0.4) 60%, rgba(8,16,43,0.2) 100%);
}
.article-header-inner {
  position: relative;
  z-index: 2;
  padding-bottom: 3rem;
  padding-top: 1rem;
  width: 100%;
}
.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.5rem;
}
.article-breadcrumb a { color: rgba(255,255,255,0.6); transition: color 0.2s; }
.article-breadcrumb a:hover { color: var(--gold-light); }
.article-breadcrumb span { opacity: 0.4; }

.article-header-content { max-width: 820px; }
.article-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 500;
  color: #fff;
  line-height: 1.1;
  margin: 1rem 0;
  letter-spacing: -0.015em;
}
.article-excerpt {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
  max-width: 65ch;
  margin-bottom: 1.5rem;
}
.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.4rem 0;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.article-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.author-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 0.95rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.article-author strong { display: block; color: #fff; font-size: 0.92rem; }
.article-author span   { font-size: 0.78rem; color: rgba(255,255,255,0.5); }
.read-time-pill {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.8);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  backdrop-filter: blur(8px);
}

/* Article Layout */
.article-main { background: var(--bg-alt); padding: clamp(48px,6vw,80px) 0 clamp(60px,8vw,100px); }

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
}

/* Article body typography */
.article-body {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  box-shadow: var(--shadow-sm);
}

.article-content h2 {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
}
.article-content h2:first-child { margin-top: 0; }
.article-content h3 {
  font-family: var(--ff-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--ink);
  margin: 2rem 0 0.7rem;
}
.article-content p {
  font-size: clamp(1rem, 1.1vw, 1.08rem);
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
}
.article-content em { color: var(--gold); font-style: italic; }
.article-content strong { color: var(--ink); font-weight: 600; }
.article-content a { color: var(--gold); border-bottom: 1px solid var(--gold-soft); transition: color 0.2s; }
.article-content a:hover { color: var(--ink); }
.article-content ul, .article-content ol {
  padding-left: 1.4rem;
  margin-bottom: 1.4rem;
}
.article-content li {
  font-size: clamp(1rem, 1.1vw, 1.05rem);
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}
.article-content blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  border-left: 4px solid var(--gold);
  background: var(--gold-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink);
}

/* Share row */
.article-share {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.8rem 0;
  border-top: 1px solid var(--line);
  margin-top: 2.5rem;
}
.share-label { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
.share-btns { display: flex; gap: 0.6rem; }
.share-btn {
  display: inline-block;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1.5px solid var(--line);
  color: var(--ink);
  transition: all 0.25s;
}
.share-btn:hover { border-color: var(--gold); color: var(--gold); }

/* Author bio */
.author-bio-card {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  padding: 1.8rem;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  margin-top: 1rem;
}
.author-bio-avatar {
  width: 56px; height: 56px; min-width: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.1rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.author-bio-body .author-bio-name { display: block; font-size: 1.05rem; font-family: var(--ff-display); color: var(--ink); margin-bottom: 0.4rem; }
.author-bio-body p  { font-size: 0.9rem; color: var(--muted); line-height: 1.6; margin-bottom: 0.8rem; }
.author-test-link   { font-size: 0.85rem; font-weight: 600; color: var(--gold); transition: color 0.2s; }
.author-test-link:hover { color: var(--ink); }

/* Sidebar */
.article-sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 1.2rem; }
.sidebar-widget {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}
.widget-title {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.widget-text { font-size: 0.88rem; color: var(--muted); line-height: 1.6; margin-bottom: 0.8rem; }
.widget-link { font-size: 0.85rem; font-weight: 500; color: var(--gold); transition: color 0.2s; }
.widget-link:hover { color: var(--ink); }
.widget-cats { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.widget-cat-link {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1.5px solid var(--line);
  color: var(--ink-soft);
  transition: all 0.25s;
}
.widget-cat-link:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }
.widget-cat-all { border-color: var(--ink); color: var(--ink); }
.widget-cat-all:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Related section */
.related-section {
  padding: clamp(60px,8vw,100px) 0;
  background: var(--bg);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); }
}

@media (max-width: 767.98px) {
  .blog-featured-card { grid-template-columns: 1fr; }
  .featured-cover-link { min-height: 220px; }
  .blog-grid { grid-template-columns: 1fr; }
  .article-header { min-height: 400px; padding-top: 132px; }
  .article-title { font-size: clamp(1.7rem,5vw,2.4rem); }
  .blog-filter-section { top: 60px; }
  .article-sidebar { grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
  .blog-grid { gap: 16px; }
  .featured-body { padding: 1.5rem; }
  .article-share { flex-direction: column; align-items: flex-start; }
  .author-bio-card { flex-direction: column; }
}
