/**
 * Verdieping (blog category) archive
 * Custom child-theme template that replaces the Divi Theme Builder body.
 * Values mirror the previous Divi archive design for visual fidelity:
 *   hero band #fdfcf9 / title 32px Lato bold #6d2c70
 *   list band rgba(255,237,206,0.5) / 1080px content / 3-col grid
 *   card white, square, shadow 0 12px 16px -10px rgba(0,0,0,.3)
 *   card title 18px Bitter bold #5e50a1 / excerpt 14px #322952
 *
 * @package Divi-Child
 */

.va-archive {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   Hero band (category title + optional description)
   ========================================================================== */
.va-hero {
  background-color: #fdfcf9;
  padding: 32px 0;
}

.va-hero__inner,
.va-list__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--space-6, 1.5rem);
}

.va-hero__title {
  margin: 0;
  font-family: "Lato", Helvetica, Arial, sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  color: #6d2c70;
  text-align: left;
}

.va-hero__desc {
  margin: var(--space-3, 0.75rem) 0 0;
  max-width: 70ch;
  font-size: 1rem;
  line-height: 1.6;
  color: #322952;
}

.va-hero__desc p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   List band + card grid
   ========================================================================== */
.va-list {
  background-color: rgba(255, 237, 206, 0.5);
  padding: 54px 0;
  /* Grow to fill the leftover height (min-height stretch on tall viewports) so
     the cream band always reaches the footer — no white gap on short pages. */
  flex: 1 0 auto;
}

.va-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .va-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .va-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   Post card
   ========================================================================== */
.va-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: #ffffff;
  border-radius: 0;
  padding: 19px;
  box-shadow: 0 12px 16px -10px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.va-card:hover {
  box-shadow: 0 20px 28px -12px rgba(0, 0, 0, 0.35);
  transform: translateY(-3px);
}

.va-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.va-card__media {
  display: block;
  width: 100%;
  aspect-ratio: 400 / 250;
  margin-bottom: 14px;
  overflow: hidden;
  /* On-brand gradient shows when a category/post has no image (placeholder). */
  background: linear-gradient(135deg, var(--primary-100, #f3edff) 0%, rgba(255, 237, 206, 0.7) 100%);
}

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

.va-card:hover .va-card__img {
  transform: scale(1.05);
}

.va-card__title {
  margin: 0 0 var(--space-2, 0.5rem);
  font-family: "Bitter", Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  color: #5e50a1;
}

.va-card__excerpt {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #322952;
}

.va-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 12px;
  font-family: "Lato", Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #6d2c70;
}

.va-card__more svg {
  transition: transform 0.2s ease;
}

.va-card:hover .va-card__more svg {
  transform: translateX(3px);
}

/* ==========================================================================
   Empty state
   ========================================================================== */
.va-empty {
  margin: 0;
  font-size: 1.125rem;
  color: #322952;
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.va-pagination {
  margin-top: 40px;
}

.va-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.va-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 0.75rem;
  border-radius: 8px;
  background-color: #ffffff;
  color: #6d2c70;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.va-pagination .page-numbers.current {
  background-color: #6d2c70;
  color: #ffffff;
}

.va-pagination a.page-numbers:hover {
  background-color: var(--primary-100, #f3edff);
}

/* ==========================================================================
   Remove the site-wide footer top-margin gap on category archives so the
   cream list band meets the footer (no white strip above the footer).
   Scoped to category archives only via the body.category class.
   ========================================================================== */
body.category .site-footer {
  margin-top: 0;
}

/* ==========================================================================
   Verdieping overview / hub — category cards
   ========================================================================== */
.va-overview .va-cat-card .va-card__title {
  margin-bottom: var(--space-1, 0.25rem);
}

.va-cat-card__eyebrow {
  display: block;
  margin: 0 0 4px;
  font-family: "Lato", Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8b4d8b;
}

.va-cat-card__count {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #322952;
}

/* The overview page is a page (body.page), not a category archive — close the
   same white footer gap there too (footer is the next sibling of <main>). */
.va-overview ~ .site-footer {
  margin-top: 0;
}

