.blog-container {
  max-width: 1240px;
  margin: auto;
  padding: 2rem;
}

.posts-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columnas fijas */
  gap: 2rem;
  margin-top: 1.5rem;
}

.post-card {
  height: 420px;
  max-width: 365px;
  margin: auto;
  background-color: #fff;
  border-radius: 0.6rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.post-card:hover {
  transform: translateY(-4px);
}

.post-card .post-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.post-content {
  padding: 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.post-content h2 {
  font-size: 1.1rem;
  line-height: 1.4;
  color: #0c528f;
  margin-bottom: 0.6rem;
}

.post-content h2 a {
  text-decoration: none;
  color: inherit;
}

.post-content p {
  font-size: 1rem;
  line-height: 1.5;
  color: #515151;
  margin-bottom: 0.75rem;
}

.post-content small {
  font-size: 0.8rem;
  color: #7b7b7b;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pagination a {
  text-decoration: none;
  color: #0c528f;
  border: 1px solid #ddd;
  padding: 0.4rem 0.75rem;
  border-radius: 5px;
  transition: background-color 0.2s;
}

.pagination a:hover {
  background-color: #0c528f;
  color: white;
}

.pagination a.active {
  background-color: #0c528f;
  color: white;
  font-weight: bold;
}

/* Responsive */
@media screen and (max-width: 1024px) {
  .posts-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 600px) {
  .posts-list {
    grid-template-columns: 1fr;
  }

  .post-card {
    height: auto;
    max-width: 100%;
  }

  .post-card .post-image {
    height: 160px;
  }

  .post-content h2 {
    font-size: 1.2rem;
  }

  .post-content p {
    font-size: 0.95rem;
  }

  .post-content small {
    font-size: 0.8rem;
  }
}


/* buscador */

.blog-search {
  display: flex;
  justify-content: center;
  margin: 1rem 0 2rem;
}
.search-form {
  display: flex;
  width: 100%;
  max-width: 600px;
  border: 2px solid #0c528f;
  border-radius: 50px;
  overflow: hidden;
  background: #fff;
}
.search-form input[type="text"] {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  outline: none;
  font-size: 1rem;
}
.search-form button {
  background: #0c528f;
  color: white;
  border: none;
  padding: 0 1.2rem;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
}
.search-form button i {
  font-size: 1.1rem;
}
.search-form button:hover {
  background-color: #063e6b;
}



.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
