.blog-index {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.blog-index__header {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.blog-index__title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  color: #111827;
}

@media (min-width: 640px) {
  .blog-index__title {
    font-size: 2.5rem;
  }
}

.blog-index__desc {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: #6b7280;
}

/* Category tabs */
.blog-category-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  padding-bottom: 0.35rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.blog-category-tabs::-webkit-scrollbar {
  display: none;
}

.blog-category-tabs__tab {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  padding: 0.45rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #4b5563;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.blog-category-tabs__tab:hover {
  color: var(--bharat-primary);
  border-color: var(--bharat-primary-muted);
}

.blog-category-tabs__tab.is-active {
  color: #fff;
  background: var(--bharat-primary);
  border-color: var(--bharat-primary);
}

.blog-bento-card__category {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bharat-primary-hover);
}

/* Simple 3-column blog grid */
.blog-bento {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

@media (min-width: 640px) {
  .blog-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .blog-bento {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.blog-bento-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.blog-bento-card:hover {
  border-color: var(--bharat-primary-muted);
  box-shadow: 0 12px 32px rgb(var(--bharat-primary-rgb) / 0.1);
  transform: translateY(-2px);
}

.blog-bento-card__link {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  color: inherit;
  text-decoration: none;
}

/* Fixed 1200×630 frame - images are cropped to this size on upload */
.blog-bento-card__media {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  aspect-ratio: 1200 / 630;
  overflow: hidden;
  background: #f3f4f6;
}

.blog-bento-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.blog-bento-card__media--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bharat-primary);
}

.blog-bento-card__media--empty svg {
  width: 2.75rem;
  height: 2.75rem;
  opacity: 0.4;
}

.blog-bento-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem 1.125rem 1.125rem;
}

.blog-bento-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--bharat-primary);
}

.blog-bento-card__title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  color: #111827;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.blog-bento-card__excerpt {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #6b7280;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Pagination */
.blog-pagination {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.blog-pagination__info {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: #6b7280;
  text-align: center;
}

.blog-pagination__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-pagination__item {
  margin: 0;
}

.blog-pagination__link,
.blog-pagination__span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.blog-pagination__link {
  color: #374151;
  background: #fff;
  border: 1px solid #e5e7eb;
}

.blog-pagination__link:hover {
  color: var(--bharat-primary);
  border-color: var(--bharat-primary-muted);
  background: var(--bharat-primary-light);
}

.blog-pagination__span {
  color: #9ca3af;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  cursor: default;
}

.blog-pagination__link.is-active,
.blog-pagination__span.is-active {
  color: #fff;
  background: var(--bharat-primary);
  border-color: var(--bharat-primary);
}

.blog-pagination__link--arrow {
  min-width: auto;
  padding: 0 1rem;
}

.blog-show {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.blog-show__header {
  max-width: none;
  margin: 0 0 1.5rem;
  text-align: left;
}

.blog-show__layout--no-sidebar .blog-show__header {
  max-width: 48rem;
  margin-inline: auto;
  margin-bottom: 2rem;
  text-align: center;
}

.blog-show__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem 1rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
}

.blog-show__layout--no-sidebar .blog-show__meta {
  justify-content: center;
}

.blog-show__meta-item--author {
  font-weight: 600;
  color: #374151;
}

.blog-show__category {
  color: var(--bharat-primary);
  font-weight: 600;
  text-decoration: none;
}

.blog-show__category:hover {
  text-decoration: underline;
}

.blog-show__title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  color: #111827;
}

@media (min-width: 640px) {
  .blog-show__title {
    font-size: 2.75rem;
  }
}

.blog-show__excerpt {
  margin-top: 0.875rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: #4b5563;
}

.blog-show__featured {
  width: 100%;
  max-width: none;
  margin: 0 0 1.5rem;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
  box-shadow: 0 8px 30px rgb(0 0 0 / 0.08);
  aspect-ratio: 1200 / 630;
}

.blog-show__layout--no-sidebar .blog-show__featured {
  max-width: 56rem;
  margin-inline: auto;
  margin-bottom: 2rem;
}

.blog-show__featured img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.blog-show__layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.blog-show__layout--no-sidebar .blog-show__main {
  max-width: 48rem;
  margin-inline: auto;
}

.blog-show__main {
  min-width: 0;
}

.blog-show__sidebar {
  min-width: 0;
}

@media (min-width: 1024px) {
  .blog-show__layout:not(.blog-show__layout--no-sidebar) {
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 20rem);
    gap: 2.5rem;
    align-items: start;
  }

  .blog-show__sidebar {
    position: sticky;
    top: 5.5rem;
  }
}

@media (max-width: 1023px) {
  .blog-show__sidebar {
    max-width: 20rem;
    margin-inline: auto;
  }
}

.blog-sidebar-banner .standard-banner-carousel__arrow--prev {
  left: 0.35rem;
}

.blog-sidebar-banner .standard-banner-carousel__arrow--next {
  right: 0.35rem;
}

.blog-show__content {
  font-size: 1rem;
  line-height: 1.75;
  color: #374151;
}

.blog-show__content h2,
.blog-show__content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
  color: #111827;
}

.blog-show__content p {
  margin-bottom: 1rem;
}

.blog-show__content p:last-child {
  margin-bottom: 0;
}

.blog-show__content a {
  color: var(--bharat-primary);
  font-weight: 600;
  text-decoration: underline;
}

.blog-show__footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.blog-show__share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}

.blog-show__share-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: #374151;
}

.blog-show__share-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.blog-show__share-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.375rem;
  height: 2.375rem;
  padding: 0;
  color: #374151;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.blog-show__share-btn svg {
  width: 1.125rem;
  height: 1.125rem;
}

.blog-show__share-btn:hover,
.blog-show__share-btn:focus-visible {
  color: var(--bharat-primary);
  border-color: var(--bharat-primary-muted);
  background: var(--bharat-primary-light);
  transform: translateY(-1px);
  outline: none;
}

.blog-show__share-btn.is-copied {
  color: #047857;
  border-color: #6ee7b7;
  background: #ecfdf5;
}

.blog-show__share-btn[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 0.45rem);
  left: 50%;
  z-index: 5;
  padding: 0.25rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  white-space: nowrap;
  pointer-events: none;
  background: #111827;
  border-radius: 0.375rem;
  opacity: 0;
  transform: translateX(-50%) translateY(0.2rem);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.blog-show__share-btn[data-tip]:hover::after,
.blog-show__share-btn[data-tip]:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.blog-show__back {
  max-width: none;
  margin: 0;
  text-align: left;
}

.blog-show__layout--no-sidebar .blog-show__back {
  text-align: center;
}

.blog-show__back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.125rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--bharat-primary);
  text-decoration: none;
  background: var(--bharat-primary-light);
  border: 1px solid var(--bharat-primary-muted);
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgb(var(--bharat-primary-rgb) / 0.12);
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.blog-show__back-link svg {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}

.blog-show__back-link:hover,
.blog-show__back-link:focus-visible {
  color: #fff;
  background: var(--bharat-primary);
  border-color: var(--bharat-primary);
  transform: translateY(-1px);
  outline: none;
}

.blog-show__related {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid #e5e7eb;
}

.blog-show__related-title {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: #111827;
}

.blog-show__related-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

@media (min-width: 640px) {
  .blog-show__related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .blog-show__related-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.blog-empty {
  padding: 4rem 1rem;
  text-align: center;
  color: #6b7280;
}
