/* ============================================
   Archive Blog — matches single-article.css palette
   Navy: #222a42 | Salmon: #d1836e | Text: whitesmoke
   ============================================ */

/* --- Hero --- */
.archive-hero {
  background-color: #d1836e;
  padding-block: 5%;
  background-image: url(https://foodlab.net/wp-content/uploads/pesce-1.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right;
}

.archive-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.archive-hero__text {
  color: #222a42;
}

.pre-title {
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.archive-hero__title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
  margin: 0;
  color: #222a42;
}

.archive-hero__desc {
  opacity: 0.85;
  max-width: 38ch;
}

/*
.archive-hero__image {
  border-radius: 4px;
  overflow: hidden;
}

.archive-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
*/

/* --- Posts Grid --- */
.archive-posts {
  background-color: #222a42;
  padding-block: 5%;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

/* --- Post Card --- */
.post-card {
  background-color: #2d3654;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.post-card__thumb {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

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

.post-card:hover .post-card__img {
  transform: scale(1.04);
}

.post-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.post-card__cat {
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #d1836e;
}

.post-card__title {
  font-size: 1.6rem;
  line-height: 1.3;
  margin: 0;
}

.post-card__title a {
  color: whitesmoke;
  text-decoration: none;
}

.post-card__title a:hover {
  color: #d1836e;
}

.post-card__excerpt {
  font-size: 1.4rem;
  color: rgba(245, 245, 245, 0.7);
  line-height: 1.6;
  flex: 1;
}

.post-card__meta {
  font-size: 1.4rem;
  color: rgba(245, 245, 245, 0.45);
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(209, 131, 110, 0.2);
}

/* --- Pagination --- */
.archive-pagination {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.archive-pagination .nav-links {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-wrap: wrap;
}

.archive-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 6.4rem;
  height: 4.4rem;
  padding-inline: 1.75rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
  color: whitesmoke;
  background-color: #2d3654;

}

.archive-pagination .page-numbers:hover {
  background-color: #d1836e;
  color: #222a42;
}

.archive-pagination .page-numbers.current {
  background-color: #d1836e;
  color: #222a42;
  font-weight: 700;
}

.archive-pagination .page-numbers.dots {
  background: transparent;
  cursor: default;
}

/* --- Empty state --- */
.no-posts {
  color: rgba(245, 245, 245, 0.6);
  text-align: center;
  padding-block: 4rem;
}

/* --- Responsive --- */
@media screen and (max-width: 991px) {
  .archive-hero__grid {
    grid-template-columns: 1fr;
  }

  .archive-hero {
    background-image: none;
  }

  .archive-hero div.container {
    padding-top: 15rem;
  }

  header {
    top: 0 !important;
  }

  .archive-pagination .page-numbers {
    min-width: 4.2rem;
    height: 2.4rem;
    padding-inline: 0.75rem;
    font-size: 1.4rem;
  }
}

@media screen and (max-width: 576px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }
}