/* ============================================================
   ARCHIVE PAGE — Blog post archive / category pages
   ============================================================ */

.archive .page-header {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.archive .archive-title {
  font-size: 24px;
  font-weight: 700;
  color: #222222;
  margin: 0 0 10px;
}

@media (min-width: 768px) {
  .archive .archive-title {
    font-size: 28px;
  }
}

.archive .archive-subtitle {
  font-size: 16px;
  color: #666666;
  margin: 0;
  font-style: italic;
}

/* ── Posts grid ─────────────────────────────────────────── */
.archive-posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 48px;
}

@media (min-width: 640px) {
  .archive-posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

@media (min-width: 1024px) {
  .archive-posts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Archive card ───────────────────────────────────────── */
.archive-card {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.archive-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

/* Image */
.archive-card__image-wrap {
  display: block;
  overflow: hidden;
  flex-shrink: 0;
}

.archive-card__image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #f0f0f0;
}

.archive-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.archive-card:hover .archive-card__image img {
  transform: scale(1.05);
}

.archive-card__no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cccccc;
  font-size: 48px;
}

/* Body */
.archive-card__body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.archive-card__category {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #8b0e0e;
  margin-bottom: 8px;
}

.archive-card__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 10px;
}

.archive-card__title a {
  color: #222222;
  text-decoration: none;
}

.archive-card__title a:hover {
  color: #8b0e0e;
}

.archive-card__excerpt {
  font-size: 14px;
  color: #555555;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Footer */
.archive-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid #f0f0f0;
  padding-top: 12px;
  margin-top: auto;
}

.archive-card__meta {
  font-size: 12px;
  color: #999999;
}

.archive-card__read-more {
  font-size: 13px;
  font-weight: 600;
  color: #8b0e0e;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.archive-card__read-more:hover {
  text-decoration: underline;
}

/* ── No results ─────────────────────────────────────────── */
.no-results {
  text-align: center;
  padding: 48px 16px;
  background-color: #f8f8f8;
  border-radius: 12px;
}

.no-results .not-found-title {
  font-size: 20px;
  color: #222222;
  margin-bottom: 16px;
}

.no-results .not-found-message {
  color: #666666;
  margin-bottom: 24px;
  line-height: 1.75;
}

.no-results .not-found-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  background-color: #8b0e0e;
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: background-color 200ms ease;
}

.no-results .not-found-button:hover {
  background-color: #b41414;
}

.archive #secondary {
  display: none !important;
}