/* =========================
FILE: heritages.css
========================= */

body {
  background: #F8F8FC;
}

/* HERO */

.heritages-hero {
  position: relative;
  padding: 190px 40px 110px;
  text-align: center;
  max-width: 1280px;
  margin: auto;
}

.hero-badge {
  display: inline-flex;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(30,58,138,0.08);
  color: #1E3A8A;
  font-weight: 800;
  margin-bottom: 30px;
}

.heritages-hero h1 {
  font-size: 74px;
  line-height: 1.05;
  font-weight: 900;
  color: #0F172A;
  margin-bottom: 24px;
}

.heritages-hero p {
  max-width: 840px;
  margin: auto;
  line-height: 1.9;
  color: #475569;
  font-size: 20px;
}

/* FILTERS */

.filters-section {
  max-width: 1400px;
  margin: auto;
  padding: 0 40px 70px;
}

.search-box {
  background: white;
  border-radius: 28px;
  padding: 20px 24px;
  display: flex;
  gap: 18px;
  margin-bottom: 34px;
  box-shadow:
    0 12px 30px rgba(15,23,42,0.06);
}

.search-box i {
  color: #1E3A8A;
}

.search-box input {
  border: none;
  background: transparent;
  width: 100%;
  outline: none;
  font-size: 17px;
}

.filter-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.filter-btn {
  border: none;
  padding: 14px 24px;
  border-radius: 16px;
  cursor: pointer;
  background: white;
  font-weight: 700;
  color: #1E3A8A;
  transition: 0.3s ease;
  box-shadow:
    0 5px 15px rgba(15,23,42,0.05);
}

.filter-btn:hover {
  transform: translateY(-2px);
}

.filter-btn.active {
  background: linear-gradient(
    135deg,
    #1E3A8A,
    #3B82F6
  );
  color: white;
}

/* GRID */

.heritages-container {
  max-width: 1400px;
  margin: auto;
  padding: 0 40px 120px;
}

.heritages-grid {
  display: grid;
  grid-template-columns:
    repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
}

/* CARD */

.heritage-card {
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  background: white;
  border-radius: 34px;
  transition: 0.4s ease;
  box-shadow:
    0 15px 40px rgba(15,23,42,0.06);
}

.heritage-card:hover {
  transform: translateY(-10px);
  box-shadow:
    0 25px 60px rgba(15,23,42,0.12);
}

.heritage-image {
  height: 240px;
  background-size: cover;
  background-position: center;
}

.heritage-content {
  padding: 32px;
}

.heritage-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.meta-pill {
  background: rgba(30,58,138,0.08);
  color: #1E3A8A;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.read-pill {
  background: rgba(30,58,138,0.10);
  color: #1E3A8A;
}

.heritage-content h3 {
  font-size: 30px;
  margin-bottom: 18px;
  color: #0F172A;
}

.heritage-content p {
  color: #64748B;
  line-height: 1.9;
}

.heritage-link {
  margin-top: 24px;
  display: inline-flex;
  gap: 10px;
  font-weight: 800;
  color: #1E3A8A;
}

/* PAGINATION */

.pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 60px;
  flex-wrap: wrap;
}

.page-btn {
  border: none;
  background: white;
  color: #1E3A8A;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 12px;
  cursor: pointer;
}

.page-btn.active {
  background: #1E3A8A;
  color: white;
}

/* STATES */

.loading-state,
.error-state,
.no-results {
  text-align: center;
  padding: 80px 20px;
  font-size: 18px;
  color: #64748B;
}

/* RESPONSIVE */

@media (max-width: 1100px) {

  .heritages-hero h1 {
    font-size: 54px;
  }

  .filters-section,
  .heritages-container {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 700px) {

  .heritages-hero {
    padding: 150px 24px 80px;
  }

  .heritages-hero h1 {
    font-size: 40px;
  }

  .heritages-hero p {
    font-size: 18px;
  }

  .heritages-grid {
    grid-template-columns: 1fr;
  }

  .filter-buttons {
    gap: 10px;
  }

  .filter-btn {
    width: 100%;
  }
}