/* ==========================================================================
   REVISINEWS - ARSIP KATEGORI, TAG, PENCARIAN & HALAMAN 404
   ========================================================================== */

/* 1. HEADER ARSIP --------------------------------------------------------- */
.rn-archive-header {
  margin-bottom: 22px;
  padding: 20px 24px;
  border-left: 5px solid var(--rn-accent);
  border-radius: var(--rn-radius);
  background-color: var(--rn-surface);
  box-shadow: var(--rn-shadow-sm);
}

.rn-archive-title {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.2px;
  text-transform: uppercase;
  color: var(--rn-heading);
}

.rn-archive-description {
  margin: 8px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--rn-text-muted);
}

.rn-archive-actions {
  margin-top: 14px;
}

.rn-archive-actions .rn-search-form {
  max-width: 380px;
}

/* 2. GRID KARTU ARSIP ----------------------------------------------------- */
.rn-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.rn-archive-grid > li {
  display: flex;
  min-height: 0;
}

.rn-archive-card {
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--rn-border);
  border-radius: var(--rn-radius-sm);
  background-color: var(--rn-surface);
  box-shadow: var(--rn-shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rn-archive-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--rn-shadow-md);
}

.rn-archive-img {
  height: 158px;
  overflow: hidden;
}

.rn-archive-img a {
  display: block;
  width: 100%;
  height: 100%;
}

.rn-archive-img img {
  width: 100%;
  height: 158px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.rn-archive-card:hover .rn-archive-img img {
  transform: scale(1.06);
}

.rn-archive-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  padding: 13px 14px 15px;
}

.rn-archive-meta {
  font-size: 11px;
  font-weight: 600;
  color: var(--rn-text-muted);
}

.rn-archive-title-link {
  margin: 0;
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.35;
}

.rn-archive-title-link a {
  display: -webkit-box;
  overflow: hidden;
  color: var(--rn-heading);
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rn-archive-title-link a:hover {
  color: var(--rn-accent);
}

.rn-archive-excerpt p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--rn-text-muted);
  font-size: 12.5px;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* 3. HALAMAN 404 ---------------------------------------------------------- */
.rn-404 {
  margin-bottom: 32px;
  padding: 48px 28px;
  border-radius: 12px;
  background-color: var(--rn-surface);
  box-shadow: var(--rn-shadow-sm);
  text-align: center;
}

.rn-404-code {
  margin: 0 0 6px;
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -2px;
  color: var(--rn-accent);
}

.rn-404-title {
  margin: 0 0 10px;
  font-size: 23px;
  font-weight: 900;
  line-height: 1.25;
  color: var(--rn-heading);
}

.rn-404-text {
  max-width: 48ch;
  margin: 0 auto 20px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--rn-text-muted);
}

.rn-404 .rn-search-form {
  max-width: 380px;
  margin: 0 auto 18px;
}

.rn-404-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border: 1px solid var(--rn-border-strong);
  border-radius: 6px;
  color: var(--rn-heading);
  font-size: 13px;
  font-weight: 700;
}

.rn-404-home:hover {
  border-color: var(--rn-accent);
  background-color: var(--rn-accent);
  color: var(--rn-on-accent);
}

.rn-404-latest {
  max-width: 980px;
  margin: 0 auto;
}

/* 4. RESPONSIF ----------------------------------------------------------- */
@media screen and (max-width: 900px) {
  .rn-archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 640px) {
  .rn-archive-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .rn-archive-header {
    padding: 16px 18px;
  }

  .rn-archive-title {
    font-size: 19px;
  }

  .rn-archive-img,
  .rn-archive-img img {
    height: 176px;
  }

  .rn-404 {
    padding: 34px 18px;
  }

  .rn-404-code {
    font-size: 44px;
  }

  .rn-404-title {
    font-size: 19px;
  }
}
