/* ── PostsSection ───────────────────────────────── */
.posts-section {
  margin-top: 100px;
  margin-bottom: 100px;
}

@media (max-width: 768px) {
  .posts-section {
    margin-top: 60px;
    margin-bottom: 60px;
  }
}

/* Cabecera — reutiliza los mismos estilos que ServiceSection */
.posts-section .react-heading.style9 {
  text-align: center;
  margin-bottom: 50px;
}
.posts-section .react-heading .image-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}
.posts-section .react-heading .title-img.top img {
  width: 28px;
  height: 28px;
}
.posts-section .react-heading .sub-text {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #2C4A28;
}
.posts-section .ps-main-title {
  font-size: 42px;
  font-weight: 700;
  color: #1a3a1a;
  line-height: 1.2;
  margin: 0;
}

/* Grid 3 columnas */
.ps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 992px) {
  .ps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
  .ps-grid { grid-template-columns: 1fr; }
}

/* Tarjeta */
.ps-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e8f0e8;
  overflow: hidden;
}

/* Imagen */
.ps-card__img-wrap {
  display: block;
  overflow: hidden;
  flex-shrink: 0;
}
.ps-card__img-wrap img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.ps-card:hover .ps-card__img-wrap img {
  transform: scale(1.05);
}

/* Cuerpo */
.ps-card__body {
  padding: 22px 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Meta: fecha + categoría */
.ps-card__meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: #666;
  margin-bottom: 14px;
}
.ps-card__meta i {
  margin-right: 5px;
  color: #2C4A28;
  font-size: 13px;
}
.ps-card__cat {
  color: #2C4A28;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.ps-card__cat:hover {
  color: #3d6836;
  text-decoration: underline;
}

/* Separador */
.ps-card__divider {
  border: none;
  border-top: 1px solid #e4ece4;
  margin: 0 0 18px;
}

/* Título — máximo 2 líneas */
.ps-card__title {
  font-size: 18px;
  font-weight: 700;
  color: #1a3a1a;
  line-height: 1.45;
  margin: 0 0 22px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ps-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.ps-card__title a:hover {
  color: #2C4A28;
}

/* Botón — igual que en ServiceSection */
.ps-card .rts-btn.btn-primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #2C4A28;
  color: #fff !important;
  padding: 15px 22px;
  text-decoration: none !important;
  font-size: 15px;
  font-weight: 500;
  margin-top: auto;
  transition: background-color 0.25s;
}
.ps-card .rts-btn.btn-primary:hover {
  background-color: #3d6836;
}
