/* =====================================================================
   Astra Travel — Default archive (categories, tags, authors, dates)
   Card layout mirrors the home "Insights" component.
   ===================================================================== */
.post-archive {
  width: 100%;
  max-width: var(--ast-maxw);
  margin-inline: auto;
  padding: 48px 20px 64px;
  box-sizing: border-box;
  color: var(--ast-ink);
}

/* ── Header ── */
.post-archive__head {
  margin-bottom: 36px;
  text-align: center;
}

.post-archive__title {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
  color: var(--ast-dark);
}

.post-archive__desc {
  max-width: 60ch;
  margin-inline: auto;
  color: var(--ast-muted);
  line-height: 1.7;
}

/* ── Grid ── */
.post-archive__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

/* ── Card (modeled on .home-insights__card) ── */
.post-card {
  display: flex;
  gap: 18px;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--ast-line);
  border-radius: var(--ast-radius);
  padding: 14px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(15, 27, 76, 0.1);
}

.post-card__thumb {
  flex: 0 0 40%;
  display: block;
  border-radius: var(--ast-radius-sm);
  overflow: hidden;
}

.post-card__img {
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.post-card__img--placeholder {
  display: block;
  background: linear-gradient(135deg, #d7def0, #b9c6e6);
}

.post-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-block: 4px;
  min-width: 0;
}

.post-card__cat {
  align-self: flex-start;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ast-accent);
  background: rgba(194, 146, 46, 0.12);
  border-radius: 999px;
  text-decoration: none;
}

.post-card__title {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--ast-dark);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__title:hover {
  color: var(--ast-accent);
}

.post-card__date {
  font-size: 0.78rem;
  color: var(--ast-muted);
}

.post-card__excerpt {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--ast-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ast-accent);
  text-decoration: none;
}

.post-card__more svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s ease;
}

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

[dir="rtl"] .post-card__more svg {
  transform: scaleX(-1);
}

[dir="rtl"] .post-card__more:hover svg {
  transform: scaleX(-1) translateX(3px);
}

/* ── Pagination ── */
.post-archive__pagination {
  margin-top: 40px;
  text-align: center;
}

.post-archive__pagination .page-numbers {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  margin: 0 0.2rem;
  background: #f6f7f9;
  color: var(--ast-ink);
  border-radius: 8px;
  text-decoration: none;
  transition: 0.15s;
}

.post-archive__pagination .page-numbers:hover {
  background: #e5e7eb;
}

.post-archive__pagination .page-numbers.current {
  background: var(--ast-accent);
  color: #fff;
}

.post-archive__empty {
  padding: 3rem;
  text-align: center;
  color: var(--ast-muted);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .post-archive__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .post-card {
    flex-direction: column;
  }
  .post-card__thumb {
    flex-basis: auto;
  }
  .post-card__img {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}
