/* ============================================================
   Eva Sabrina – Blog Styles
   Desenvolvido por Digital Bloom | digitalbloom.com.br
   ============================================================ */

/* ── SKELETON SHIMMER ──────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -500px 0; }
  100% { background-position: 500px 0; }
}

.skeleton {
  background: linear-gradient(90deg, #f0e0e0 25%, #fdeaea 50%, #f0e0e0 75%);
  background-size: 500px 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: var(--radius);
  display: block;
}

/* ── BLOG CARD (compartilhado) ─────────────────────── */
.blog-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.blog-card__img-wrap {
  display: block;
  overflow: hidden;
  background: var(--color-primary-light);
  flex-shrink: 0;
  text-decoration: none;
}

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

.blog-card:hover .blog-card__img-wrap img {
  transform: scale(1.04);
}

.blog-card__img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
  display: block;
}

.blog-card__body {
  padding: var(--space-5) var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card__date {
  font-size: 0.75rem;
  color: var(--color-text-mute);
  margin-bottom: var(--space-2);
  display: block;
}

.blog-card__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-heading);
  margin-bottom: var(--space-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.blog-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

.blog-card__title a:hover { color: var(--color-accent); }

.blog-card__excerpt {
  font-size: 0.875rem;
  color: var(--color-text-mute);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: none;
  flex: 1;
  margin-bottom: var(--space-4);
}

.blog-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: auto;
}

.blog-card__link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
  white-space: nowrap;
}

.blog-card__link:hover {
  color: var(--color-accent-dark);
  text-decoration: underline;
}

.blog-card__time {
  font-size: 0.75rem;
  color: var(--color-text-mute);
  white-space: nowrap;
}

/* Skeleton card (pointer-events: none) */
.blog-card--skeleton { pointer-events: none; }

/* ── HOME: BLOG PREVIEW SECTION ────────────────────── */
.blog-preview {
  background: var(--color-bg-alt);
  padding-block: var(--section-py);
}

.blog-preview__header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: var(--space-6);
}

.blog-preview__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: 40px;
}

.blog-preview__cta {
  text-align: center;
  margin-top: var(--space-10);
}

/* ── BLOG LIST PAGE ─────────────────────────────────── */

/* Hero */
.blog-hero {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  padding-top: calc(var(--header-h) + var(--space-16));
  padding-bottom: var(--space-16);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 480px;
  height: 480px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  pointer-events: none;
}

.blog-hero__label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.blog-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.blog-hero__sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
  max-width: 56ch;
  margin: 0 auto;
  max-width: none;
}

/* Featured post banner */
.blog-featured-section {
  padding-block: var(--space-12);
  background: var(--color-bg-soft);
}

.blog-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.blog-featured__img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--color-primary-light);
  flex-shrink: 0;
}

.blog-featured__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.blog-featured:hover .blog-featured__img img {
  transform: scale(1.03);
}

.blog-featured__img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
}

.blog-featured__content {
  padding: var(--space-10);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-4);
}

.blog-featured__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-primary-light);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  align-self: flex-start;
}

.blog-featured__badge svg {
  fill: var(--color-primary-dark);
}

.blog-featured__title {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1.3;
  margin: 0;
}

.blog-featured__title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

.blog-featured__title a:hover { color: var(--color-accent); }

.blog-featured__excerpt {
  font-size: 0.95rem;
  color: var(--color-text-mute);
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 52ch;
}

.blog-featured__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.82rem;
  color: var(--color-text-mute);
  flex-wrap: wrap;
}

/* Blog grid */
.blog-section {
  padding-block: var(--space-16);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.blog-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--color-text-mute);
  padding: var(--space-20);
}

/* Error state */
.blog-error-wrap {
  text-align: center;
  padding: var(--space-16);
}

.blog-error-wrap p {
  color: var(--color-text-mute);
  margin-bottom: var(--space-6);
  max-width: none;
}

/* Pagination */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-12);
  flex-wrap: wrap;
}

.pagination__btn {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-accent);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-border);
  background: var(--color-white);
  cursor: pointer;
  transition: all var(--transition);
}

.pagination__btn:hover:not(:disabled) {
  border-color: var(--color-accent);
  background: var(--color-primary-light);
}

.pagination__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination__nums {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.pagination__num {
  font-family: var(--font-body);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  background: var(--color-white);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination__num:hover,
.pagination__num.active {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
}

.pagination__ellipsis {
  color: var(--color-text-mute);
  font-size: 0.88rem;
  padding: 0 var(--space-1);
  line-height: 38px;
}

/* ── POST PAGE ──────────────────────────────────────── */

/* Reading progress bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--color-accent);
  z-index: 9999;
  width: 0%;
  transition: width 0.08s linear;
  pointer-events: none;
}

/* Breadcrumb */
.breadcrumb {
  padding: var(--space-3) 0;
  margin-top: var(--header-h);
  font-size: 0.8rem;
  color: var(--color-text-mute);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 0;
}

.breadcrumb a {
  color: var(--color-text-mute);
  text-decoration: none;
  transition: color var(--transition);
  white-space: nowrap;
}

.breadcrumb a:hover { color: var(--color-accent); }

.breadcrumb__sep {
  color: var(--color-border);
}

.breadcrumb__current {
  color: var(--color-text);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}

/* Featured image */
.post-featured-img {
  width: 100%;
  max-height: 480px;
  overflow: hidden;
  background: var(--color-primary-light);
  line-height: 0;
}

.post-featured-img img {
  width: 100%;
  height: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

/* 2-column layout */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-16);
  padding-top: var(--space-10);
  padding-bottom: var(--space-20);
  align-items: start;
}

/* Post main */
.post-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1.25;
  margin-bottom: var(--space-5);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3) var(--space-4);
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--color-text-mute);
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-border);
}

.post-meta__author {
  font-weight: 500;
  color: var(--color-heading);
}

/* Like button */
.like-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--color-text-mute);
  background: none;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 0.3rem var(--space-4);
  cursor: pointer;
  transition: all var(--transition);
  margin-left: auto;
  flex-shrink: 0;
}

.like-btn:hover {
  border-color: var(--color-primary-dark);
  color: var(--color-primary-deep);
  background: var(--color-primary-light);
}

.like-btn.liked {
  background: var(--color-primary-light);
  border-color: var(--color-primary-dark);
  color: var(--color-primary-deep);
}

.like-btn__icon { font-size: 1rem; line-height: 1; }

/* Post loading skeleton grid */
.post-loading__grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-16);
  align-items: start;
  padding-top: 2rem;
}
@media (max-width: 1024px) {
  .post-loading__grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .post-loading__grid > *:last-child { display: none; }
}

/* Inline TOC placeholder */
#toc-inline { margin-bottom: var(--space-8); }

/* Post content typography */
.post-content {
  color: var(--color-text);
  font-size: 1.05rem;
  line-height: 1.85;
  word-break: break-word;
}

.post-content > *:first-child { margin-top: 0; }

.post-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--color-heading);
  margin: 2.5em 0 0.75em;
  line-height: 1.3;
}

.post-content h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
  color: var(--color-heading);
  margin: 2em 0 0.5em;
  line-height: 1.35;
}

.post-content h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-heading);
  margin: 1.75em 0 0.5em;
}

.post-content p {
  max-width: none;
  margin-bottom: 1.5em;
}

.post-content ul,
.post-content ol {
  margin: 1.25em 0 1.25em 1.75em;
  list-style: revert;
}

.post-content li {
  margin-bottom: 0.4em;
  line-height: 1.75;
}

.post-content blockquote {
  border-left: 4px solid var(--color-primary-dark);
  margin: 2em 0;
  padding: 1em 1.5em;
  background: var(--color-bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--color-text);
}

.post-content blockquote p:last-child { margin-bottom: 0; }

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 1.5em 0;
  display: block;
}

.post-content .aligncenter { margin-inline: auto; }
.post-content .alignleft  { float: left; margin-right: 1.5em; margin-bottom: 1em; }
.post-content .alignright { float: right; margin-left: 1.5em; margin-bottom: 1em; }

.post-content figure { margin: 1.5em 0; }

.post-content figcaption {
  font-size: 0.82rem;
  color: var(--color-text-mute);
  text-align: center;
  margin-top: var(--space-2);
  font-style: italic;
}

.post-content pre {
  background: var(--color-dark);
  color: #f0f0f0;
  border-radius: var(--radius);
  padding: 1.25em 1.5em;
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.65;
  margin: 1.5em 0;
}

.post-content code {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 0.15em 0.45em;
  font-size: 0.88em;
  font-family: 'Courier New', monospace;
}

.post-content pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
}

.post-content hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2.5em 0;
}

.post-content a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.post-content a:hover { color: var(--color-accent-dark); }

/* Table of Contents */
.toc {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-primary-dark);
  border-radius: var(--radius);
  padding: var(--space-5) var(--space-6);
}

.toc__title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.toc ul { display: flex; flex-direction: column; gap: var(--space-2); }

.toc__item--h3 { padding-left: var(--space-4); }

.toc__link {
  font-size: 0.875rem;
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition);
  display: block;
  line-height: 1.5;
}

.toc__link:hover { color: var(--color-accent); }

/* Post footer */
.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-5);
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}

.post-share {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.post-share__label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text-mute);
}

.post-share__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.post-share__btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-primary-light);
}

.post-share__btn.copied {
  background: var(--color-primary-light);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* Related posts */
.post-related {
  margin-top: var(--space-16);
  padding-top: var(--space-12);
  border-top: 1px solid var(--color-border);
}

.post-related__title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-heading);
  margin-bottom: var(--space-8);
}

.post-related .blog-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* Comments */
.comments-section {
  margin-top: var(--space-16);
  padding-top: var(--space-12);
  border-top: 1px solid var(--color-border);
}

.comments-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-heading);
  margin-bottom: var(--space-8);
}

.comment {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--color-border);
}

.comment:last-of-type { border-bottom: none; }

.comment__avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
}

.comment__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
  flex-wrap: wrap;
}

.comment__name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-heading);
}

.comment__date {
  font-size: 0.78rem;
  color: var(--color-text-mute);
}

.comment__text {
  font-size: 0.92rem;
  color: var(--color-text);
  line-height: 1.7;
  max-width: none;
}

.comments-empty {
  color: var(--color-text-mute);
  font-size: 0.92rem;
  padding: var(--space-6) 0;
}

/* Comment form */
.comment-form-wrap {
  margin-top: var(--space-10);
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}

.comment-form__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-heading);
  margin-bottom: var(--space-6);
}

.comment-form__msg {
  font-size: 0.85rem;
  margin-top: var(--space-3);
  min-height: 1.3em;
  max-width: none;
}

.comment-form__msg--success { color: #2e7d32; }
.comment-form__msg--error   { color: #e05555; }

/* Post error state */
.post-error-state {
  text-align: center;
  padding: var(--space-20);
  color: var(--color-text-mute);
  max-width: none;
}

/* Sidebar */
.post-sidebar {
  position: sticky;
  top: calc(var(--header-h) + var(--space-8));
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  max-height: calc(100vh - var(--header-h) - var(--space-8) * 2);
  overflow-y: auto;
  scrollbar-width: none;
}
.post-sidebar::-webkit-scrollbar { display: none; }

.sidebar-cta {
  background: linear-gradient(145deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  word-break: break-word;
}

.sidebar-cta__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  display: block;
  margin-bottom: var(--space-2);
}

.sidebar-cta__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: white;
  margin-bottom: var(--space-3);
}

.sidebar-cta__text {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: var(--space-5);
  line-height: 1.65;
  max-width: none;
}

.sidebar-all-posts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-accent);
  text-decoration: none;
  padding: var(--space-3) var(--space-5);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-white);
  transition: all var(--transition);
}

.sidebar-all-posts:hover {
  border-color: var(--color-accent);
  background: var(--color-primary-light);
}

/* Text selection share popup */
.share-popup {
  position: absolute;
  transform: translateX(-50%);
  background: var(--color-dark);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  display: none;
  align-items: center;
  gap: var(--space-4);
  z-index: 9000;
  white-space: nowrap;
  box-shadow: var(--shadow-lg);
  pointer-events: all;
}

.share-popup::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--color-dark);
}

.share-popup__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  transition: color var(--transition);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  padding: 0;
}

.share-popup__btn:hover { color: white; }

/* Header: always visible on blog pages */
.header--solid,
#header.scrolled {
  background: rgba(255,255,255,0.97) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom-color: var(--color-border) !important;
  box-shadow: var(--shadow-sm) !important;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: calc(var(--space-8) + 58px + var(--space-3));
  right: var(--space-8);
  z-index: 999;
  width: 44px;
  height: 44px;
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition);
  pointer-events: none;
  color: var(--color-accent);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.back-to-top:hover {
  background: var(--color-primary-light);
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .blog-featured {
    grid-template-columns: 1fr;
  }
  .blog-featured__img {
    aspect-ratio: 16/9;
    max-height: 320px;
  }
  .blog-featured__content { padding: var(--space-8); }

  .post-layout {
    grid-template-columns: 1fr;
    gap: var(--space-10);
    padding-bottom: var(--space-16);
  }
  .post-sidebar {
    position: static;
    max-height: none;
    overflow-y: visible;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .post-sidebar > * { flex: 1 1 260px; }
  .post-related .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .blog-preview__grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .blog-hero {
    padding-top: calc(var(--header-h) + var(--space-10));
    padding-bottom: var(--space-10);
  }
  .blog-featured__content { padding: var(--space-6); }
  .post-sidebar {
    flex-direction: column;
  }
  .post-sidebar > * { flex: unset; }
  .post-footer { flex-direction: column; align-items: flex-start; }
  .post-related .blog-grid { grid-template-columns: 1fr; }
  .back-to-top {
    bottom: calc(var(--space-5) + 52px + var(--space-3));
    right: var(--space-5);
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 640px) {
  .blog-preview__grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .blog-pagination { gap: var(--space-2); }
  .pagination__btn { padding: var(--space-2) var(--space-3); font-size: 0.82rem; }
}

@media (max-width: 480px) {
  .blog-featured__content { padding: var(--space-5); }
  .breadcrumb__current { max-width: 160px; }
  .comment-form-wrap { padding: var(--space-6) var(--space-5); }
}
