/* =====================================================
   PRALASH — Blogs Stylesheet
   (Blog listing grid + individual blog post layout)
   ===================================================== */

/* ---------------------------------------------------
   Listing hero — small addendum to .service-hero
--------------------------------------------------- */
.blog-hero-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ---------------------------------------------------
   Blog listing — grid + cards
--------------------------------------------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.blog-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--bg-light);
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-img img {
  transform: scale(1.08);
}

.blog-card-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--primary-gradient);
  color: var(--secondary-dark);
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.32rem 0.85rem;
  border-radius: 50px;
  box-shadow: var(--shadow-sm);
}

.blog-card-body {
  padding: 1.6rem 1.6rem 1.8rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.blog-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blog-card-meta i {
  color: var(--primary-dark);
}

.blog-card h3 {
  font-size: 1.2rem;
  line-height: 1.4;
  margin-bottom: 0.7rem;
}

.blog-card h3 a {
  color: var(--text-dark);
}

.blog-card h3 a:hover {
  color: var(--primary-dark);
}

.blog-card-excerpt {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
  flex: 1;
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--text-dark);
}

.blog-card-link i {
  transition: transform 0.25s ease;
  color: var(--primary-dark);
}

.blog-card:hover .blog-card-link i {
  transform: translateX(5px);
}

.blog-empty {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-muted);
}

/* ---------------------------------------------------
   Blog post — hero byline / meta row
--------------------------------------------------- */
.blog-byline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 1.4rem 0 1.6rem;
}

.blog-byline img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.55);
}

.blog-byline-text strong {
  display: block;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.92rem;
}

.blog-byline-text span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  margin-top: 2px;
}

.blog-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1.5rem;
}

.blog-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  font-size: 0.76rem;
  font-weight: 500;
}

/* ---------------------------------------------------
   Blog post — layout (content + sidebar)
--------------------------------------------------- */
.blog-post-section {
  padding: 70px 0 90px;
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 3.25rem;
  align-items: start;
}

@media (max-width: 991.98px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------
   Sidebar
--------------------------------------------------- */
.blog-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (max-width: 991.98px) {
  .blog-sidebar {
    position: static;
  }
}

.sidebar-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}

.sidebar-card h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.toc-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.toc-list a {
  color: var(--text-body);
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}

.toc-list a::before {
  content: '';
  width: 6px;
  height: 6px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.toc-list a:hover {
  color: var(--primary-dark);
}

.sidebar-doctor {
  text-align: center;
}

.sidebar-doctor img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.9rem;
  display: block;
  border: 3px solid var(--bg-light);
  box-shadow: var(--shadow-sm);
}

.sidebar-doctor strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  font-size: 1rem;
}

.sidebar-doctor span {
  display: block;
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-top: 3px;
  line-height: 1.5;
}

.sidebar-cta {
  background: var(--primary-gradient);
  border: none;
  text-align: center;
}

.sidebar-cta h4 {
  color: rgba(28, 28, 30, 0.72);
}

.sidebar-cta p {
  color: var(--secondary-dark);
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 1.1rem;
}

.sidebar-cta .btn {
  width: 100%;
  justify-content: center;
}

/* ---------------------------------------------------
   Article content typography
--------------------------------------------------- */
.blog-content {
  font-size: 1.04rem;
  color: var(--text-body);
  line-height: 1.8;
}

.blog-content > p:first-of-type {
  font-size: 1.14rem;
  color: var(--text-dark);
}

.blog-content h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  margin-top: 2.9rem;
  margin-bottom: 1.1rem;
  padding-top: 0.4rem;
  position: relative;
}

.blog-content h2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 46px;
  height: 4px;
  border-radius: 4px;
  background: var(--primary-gradient);
}

.blog-content p {
  margin-bottom: 1.3rem;
}

.blog-content a {
  color: var(--primary-dark);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(212, 168, 0, 0.35);
  text-underline-offset: 3px;
}

.blog-content a:hover {
  text-decoration-color: var(--primary-dark);
}

.blog-content strong {
  color: var(--text-dark);
}

.blog-inline-img {
  margin: 2.2rem 0;
}

.blog-inline-img img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: block;
}

.blog-inline-img figcaption {
  margin-top: 0.7rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

/* Table */
.blog-table-wrap {
  overflow-x: auto;
  margin: 1.6rem 0 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.blog-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  background: var(--bg-white);
}

.blog-table thead th {
  background: var(--secondary);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.86rem;
  text-align: left;
  padding: 0.95rem 1.1rem;
}

.blog-table tbody td {
  padding: 0.9rem 1.1rem;
  font-size: 0.92rem;
  border-top: 1px solid var(--border);
}

.blog-table tbody tr:nth-child(even) {
  background: var(--bg-light);
}

/* Callout box (used for the "not a DIY recipe" style notes) */
.blog-callout {
  display: flex;
  gap: 14px;
  background: var(--bg-light);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  margin: 1.8rem 0;
}

.blog-callout i {
  color: var(--primary-dark);
  font-size: 1.15rem;
  margin-top: 2px;
}

.blog-callout p {
  margin-bottom: 0;
  font-size: 0.94rem;
  color: var(--text-dark);
}

/* ---------------------------------------------------
   FAQ inside blog (reuses .faq-wrap / accordion look)
--------------------------------------------------- */
.blog-content .faq-wrap {
  margin-top: 1rem;
}

/* ---------------------------------------------------
   Author box (end of article)
--------------------------------------------------- */
.author-box {
  display: flex;
  gap: 1.4rem;
  align-items: flex-start;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  margin-top: 3.2rem;
}

.author-box img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid #fff;
  box-shadow: var(--shadow-sm);
}

.author-box h5 {
  font-size: 1.02rem;
  margin-bottom: 0.3rem;
}

.author-box p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.6;
}

/* ---------------------------------------------------
   Breadcrumb tweak for dark hero use on blog pages
--------------------------------------------------- */
.blog-hero .breadcrumb-item a,
.blog-hero .breadcrumb-item {
  color: rgba(255, 255, 255, 0.65);
}

.blog-hero .breadcrumb-item.active {
  color: #fff;
}
