/* =========================
   MASTERPIECE ARCHIVE
========================= */

.archive-masterpiece {
  padding: 120px 0;
  background-image: url("../images/patterns/jungle-texture.png");
  background-size: cover;
  background-position: center;
}

.archive-header h1 {
  font-family: "Playfair Display", serif;
  font-size: 2.6rem;
  margin-bottom: 60px;
  color: #1f3d2b;
}

/* GRID */
.masterpiece-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

/* CARD */
.masterpiece-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.masterpiece-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.22);
}

/* INNER */
.card-inner {
  display: flex;
  gap: 18px;
}

/* IMAGE */
.card-image {
  width: 140px;
  height: 140px;
  flex-shrink: 0;
  border-radius: 16px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* CONTENT */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #1f3d2b;
}

.card-excerpt {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* BUTTON */
.btn-read-more {
  align-self: flex-start;
  padding: 8px 18px;
  border-radius: 999px;
  background-color: #1f3d2b;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.btn-read-more:hover {
  background-color: #3f6b55;
  transform: translateY(-2px);
}

/* PAGINATION */
.archive-pagination {
  margin-top: 80px;
  text-align: center;
}

.archive-pagination .page-numbers {
  display: inline-block;
  margin: 0 6px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #ffffff;
  color: #1f3d2b;
  font-weight: 500;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.archive-pagination .current {
  background: #1f3d2b;
  color: #ffffff;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1024px) {
  .masterpiece-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .masterpiece-grid {
    grid-template-columns: 1fr;
  }

  .card-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .card-image {
    width: 100%;
    height: 200px;
  }

  .btn-read-more {
    align-self: center;
  }
}
