@charset "UTF-8";
/**
 * Blog page template — loaded only on page-blog.php
 */
.blog-page {
  --blog-card-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  --blog-card-shadow-hover: 0 12px 40px rgba(15, 23, 42, 0.1);
}

/* ----- Intro ----- */
.blog-page__header {
  scroll-margin-top: 6rem;
}

/* ----- Post grid & cards ----- */
.blog-page__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px) {
  .blog-page__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 2.5rem;
  }
}
@media (min-width: 1024px) {
  .blog-page__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.blog-card {
  box-shadow: var(--blog-card-shadow);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}
.blog-card:hover {
  box-shadow: var(--blog-card-shadow-hover);
  transform: translateY(-2px);
}
@media (prefers-reduced-motion: reduce) {
  .blog-card {
    transition: none;
    transform: none;
  }
  .blog-card:hover {
    transform: none;
  }
}

.blog-card__media {
  position: relative;
}
.blog-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.35) 0%, transparent 45%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.blog-card:hover .blog-card__media::after {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .blog-card__media::after {
    transition: none;
  }
}

/* Entrance: stagger without hiding content when CSS fails */
@keyframes blog-card-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.blog-page--animate .blog-page__grid .blog-card {
  opacity: 0;
  animation: blog-card-enter 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.blog-page--animate .blog-page__grid .blog-card:nth-child(1) {
  animation-delay: 0s;
}
.blog-page--animate .blog-page__grid .blog-card:nth-child(2) {
  animation-delay: 0.055s;
}
.blog-page--animate .blog-page__grid .blog-card:nth-child(3) {
  animation-delay: 0.11s;
}
.blog-page--animate .blog-page__grid .blog-card:nth-child(4) {
  animation-delay: 0.165s;
}
.blog-page--animate .blog-page__grid .blog-card:nth-child(5) {
  animation-delay: 0.22s;
}
.blog-page--animate .blog-page__grid .blog-card:nth-child(6) {
  animation-delay: 0.275s;
}
.blog-page--animate .blog-page__grid .blog-card:nth-child(7) {
  animation-delay: 0.33s;
}
.blog-page--animate .blog-page__grid .blog-card:nth-child(8) {
  animation-delay: 0.385s;
}
.blog-page--animate .blog-page__grid .blog-card:nth-child(9) {
  animation-delay: 0.44s;
}
.blog-page--animate .blog-page__grid .blog-card:nth-child(10) {
  animation-delay: 0.495s;
}
.blog-page--animate .blog-page__grid .blog-card:nth-child(11) {
  animation-delay: 0.55s;
}
.blog-page--animate .blog-page__grid .blog-card:nth-child(12) {
  animation-delay: 0.605s;
}
@media (prefers-reduced-motion: reduce) {
  .blog-page--animate .blog-page__grid .blog-card {
    opacity: 1;
    animation: none;
  }
}

/* ----- Pagination (WordPress paginate_links output) ----- */
.blog-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}
.blog-pagination a,
.blog-pagination span.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: var(--text-dark);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.blog-pagination a:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.blog-pagination a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.blog-pagination span.page-numbers.current {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  cursor: default;
}
.blog-pagination span.page-numbers.dots {
  min-width: auto;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: default;
}

/* ----- Empty state ----- */
.blog-empty {
  text-align: center;
  padding: 4rem 1.5rem;
  border-radius: 1rem;
  border: 1px dashed #e5e7eb;
  background: #fff;
}

/*# sourceMappingURL=blog.css.map*/