/* =========================================
   MAPA NEWS ARCHIVE
========================================= */

.mapa-news-archive {
  width: 100%;
}

.mapa-news-filter {
  width: 100%;
  margin: 0 0 28px;
}

.mapa-news-filter-title {
  margin: 0 0 10px;
  color: #07132d;
  font-size: 17px;
  font-weight: 900;
}

.mapa-news-filter-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 10px;
  width: 100%;
}

.mapa-news-filter-form select {
  width: 100%;
  height: 38px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #d8dce3;
  border-radius: 2px;
  background: #fff;
  color: #606975;
  font-family: inherit;
  font-size: 15px;
  line-height: 38px;
  outline: none;
  box-shadow: none;
}

.mapa-news-filter-form select:focus {
  border-color: #0b2e6b;
}

.mapa-news-filter-form button {
  height: 38px;
  margin: 0;
  padding: 0 25px;
  border: 0;
  border-radius: 2px;
  background: #d9000a;
  color: #fff;
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  line-height: 38px;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}

.mapa-news-filter-form button:hover {
  background: #b90008;
}

.mapa-news-results {
  width: 100%;
  min-height: 50px;
  position: relative;
  transition: opacity 0.18s ease;
}

.mapa-news-results.is-loading {
  opacity: 0.45;
  pointer-events: none;
}

.mapa-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
}

.mapa-news-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e3e6eb;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.035);
}

.mapa-news-image {
  display: block;
  width: 100%;
  height: 155px;
  overflow: hidden;
  background: #e9edf2;
  text-decoration: none;
}

.mapa-news-image img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.mapa-news-card:hover .mapa-news-image img {
  transform: scale(1.03);
}

.mapa-news-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e9edf2, #cdd4de);
}

.mapa-news-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 12px 13px 15px;
}

.mapa-news-date {
  margin: 0 0 7px;
  color: #d9000a;
  font-size: 13px;
  line-height: 1.3;
}

.mapa-news-title {
  margin: 0 0 7px;
  padding: 0;
  color: #0b1832;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
}

.mapa-news-title a {
  color: inherit;
  /* color: #0b1832; */
  /* background-color: #0b1832; */
  text-decoration: none;
}

.mapa-news-title a:hover {
  color: #d9000a;
}

.mapa-news-excerpt {
  margin: 0 0 12px;
  padding: 0;
  color: #000000;
  font-size: 17px;
  font-weight: 100;
  line-height: 1.55;
}

.mapa-news-read-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  margin-top: auto;
  padding: 0;
  color: #d9000a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}

.mapa-news-read-more span {
  font-size: 12px;
  line-height: 1;
}

.mapa-news-read-more:hover {
  color: #07132d;
}

.mapa-news-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin: 30px 0 0;
  padding: 0;
}

.mapa-news-page-number,
.mapa-news-page-arrow {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #dfe3e8;
  border-radius: 2px;
  background: #fff;
  color: #0a2d67;
  font-size: 10px;
  font-weight: 600;
  line-height: 32px;
  text-decoration: none;
  cursor: pointer;
}

.mapa-news-page-number:hover,
.mapa-news-page-arrow:hover,
.mapa-news-page-number.active {
  border-color: #0a2d67;
  background: #0a2d67;
  color: #fff;
}

.mapa-news-page-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 3px;
  color: #68717d;
  font-size: 11px;
}

.mapa-news-empty {
  width: 100%;
  padding: 55px 25px;
  border: 1px solid #e3e6eb;
  background: #fff;
  text-align: center;
}

.mapa-news-empty h3 {
  margin: 0 0 8px;
  color: #07132d;
  font-size: 20px;
}

.mapa-news-empty p {
  margin: 0;
  color: #68717d;
  font-size: 12px;
}

@media (max-width: 900px) {
  .mapa-news-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mapa-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .mapa-news-filter-form {
    grid-template-columns: 1fr;
  }

  .mapa-news-grid {
    grid-template-columns: 1fr;
  }

  .mapa-news-image {
    height: 210px;
  }
}
