/* =====================================
ARCHIVE PAGES – CATEGORY / SUBCATEGORY / TAG
===================================== */

html,
body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    sans-serif;
  background: #ffffff;
  color: #111827;
  -webkit-font-smoothing: antialiased;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* HERO */

.archive-hero {
  position: relative;
  height: 40vh;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 6vw, 90px);
  background: linear-gradient(135deg, #191660 0%, #1f1a4d 100%);
  color: #ffffff;
  text-align: center;
  overflow: hidden;
}

.archive-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(126, 208, 251, 0.2), transparent 60%);
  opacity: 0.8;
}

.archive-hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at bottom, rgba(0, 0, 0, 0.6), transparent 55%);
  z-index: 1;
}

.archive-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.archive-eyebrow {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 10px;
}

.archive-hero-inner h1 {
  font-size: clamp(32px, 4.5vw, 46px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  line-height: 1.15;
}

.archive-hero-inner h1 span {
  color: #7ed0fb;
}

.archive-lead {
  font-size: 15px;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.94;
}

/* FILTER BAR (simple) */

.archive-filters {
  padding: 18px clamp(20px, 6vw, 90px) 0;
  background: #ffffff;
}

.archive-breadcrumb {
  font-size: 13px;
  color: #6b7280;
}

.archive-breadcrumb a {
  color: #6b7280;
  text-decoration: none;
}

.archive-breadcrumb a:hover {
  color: #191660;
}

/* GRID */

.archive-section {
  padding: 32px clamp(20px, 6vw, 90px) 80px;
  background: #ffffff;
}

.archive-container {
  max-width: 1040px;
  margin: 0 auto;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.archive-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.archive-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.archive-card-body {
  padding: 14px 16px 16px;
}

.archive-card-kicker {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #6366f1;
  margin-bottom: 6px;
}

.archive-card-title {
  font-size: 16px;
  font-weight: 650;
  color: #111827;
  margin: 0 0 8px;
  line-height: 1.4;
}

.archive-card-excerpt {
  font-size: 14px;
  color: #4b5563;
  margin: 0 0 10px;
  line-height: 1.6;
}

.archive-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #6b7280;
}

.archive-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

/* EMPTY */

.archive-empty {
  font-size: 15px;
  color: #6b7280;
  text-align: center;
  padding: 40px 0;
}

/* PAGINATION */

.archive-pagination {
  padding: 24px 0 0;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pagination-link,
.pagination-prev,
.pagination-next {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  color: #191660;
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  transition: all 0.2s ease;
}

.pagination-link:hover,
.pagination-prev:hover,
.pagination-next:hover {
  background: #f9fafb;
  border-color: #7ed0fb;
  color: #7ed0fb;
}

.pagination-link.active {
  background: #7ed0fb;
  color: #191660;
  border-color: #7ed0fb;
}

/* RESPONSIVE */

@media (max-width: 1024px) {
  .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .archive-hero {
    height: auto;
    padding: 40px 20px;
  }

  .archive-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .archive-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .archive-hero-inner h1 {
    font-size: 26px;
  }

  .archive-lead {
    font-size: 14px;
  }
}
