/* ===== Layout ===== */
.rs-archive {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
}

@media (max-width: 992px) {
  .rs-archive {
    grid-template-columns: 1fr;
  }
}

/* ===== Sidebar ===== */
.rs-archive__sidebar { position: sticky; top: 24px; align-self: start; }
.rs-sidecard {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.rs-sidecard__title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 12px;
}
.rs-sidecard__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.rs-sidecard__list li + li { margin-top: 8px; }
.rs-sidecard__list a {
  text-decoration: none;
  color: #007BFF;
}
.rs-sidecard__list a:hover { text-decoration: underline; }

/* ===== Main ===== */
.rs-archive__main {}

.rs-formcat-breadcrumb {
  margin-bottom: 12px;
  font-size: 14px;
}
.rs-formcat-breadcrumb a {
  color: #007BFF;
  text-decoration: none;
}
.rs-formcat-breadcrumb a:hover { text-decoration: underline; }

.rs-formcat-title {
  margin: 0 0 16px;
  font-size: 28px;
  line-height: 1.25;
}

/* ===== Cards Grid ===== */
.rs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 20px;
}

@media (max-width: 1200px) {
  .rs-grid { grid-template-columns: repeat(1, minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .rs-grid { grid-template-columns: 1fr; }
}

/* ===== Card ===== */
.rs-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.05);
  transition: transform .12s ease, box-shadow .12s ease;
}
.rs-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0,0,0,.07);
}
.rs-card__title {
  font-size: 18px;
  margin: 0 0 8px;
  line-height: 1.35;
}
.rs-card__title a {
  color: #111827;
  text-decoration: none;
}
.rs-card__title a:hover { color: #0d6efd; }
.rs-card__excerpt {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
}

/* Tags + More… */
.rs-card__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.rs-tag {
  font-size: 10px;
  background: #f3f4f6;
  color: #374151;
  border-radius: 999px;
  padding: 6px 10px;
  line-height: 1;
  display: inline-block;
}
.rs-tag--hidden { display: none; }

.rs-tags-more {
  background: transparent;
  border: 0;
  color: #0d6efd;
  font-size: 12px;
  padding: 0 2px;
  cursor: pointer;
}
.rs-tags-more:hover { text-decoration: underline; }

/* ===== Pagination ===== */
.rs-pagination { margin-top: 24px; }
.rs-pagination__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.rs-pagination__item a, .rs-pagination__item span {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  text-decoration: none;
  color: #374151;
  background: #fff;
  font-size: 14px;
}
.rs-pagination__item a:hover {
  color: #0d6efd;
  border-color: #cfe2ff;
  background: #f8f9ff;
}
.rs-pagination__item--active span {
  color: #fff;
  background: #0d6efd;
  border-color: #0d6efd;
}
