.recent-posts {
  padding: 60px 0;
  background-color: #fff;
  /* Fondo blanco para alternar con las otras secciones */
}

.post-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  margin-top: 40px;
}

.post-card {
  flex: 0 0 calc(33.333% - 20px);
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.post-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.post-image {
  height: 200px;
  overflow: hidden;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card:hover .post-image img {
  transform: scale(1.05);
}

.post-content {
  padding: 20px;
}

.post-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.4;
}

.post-content p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 15px;
}

.read-more {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  display: inline-block;
  transition: color 0.3s ease;
}

.post-card:hover .read-more {
  color: var(--primary-dark);
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.section-divider {
  height: 4px;
  width: 80px;
  background-color: var(--primary-color);
  margin: 0 auto;
}

/* Responsive styles */
@media (max-width: 992px) {
  .post-card {
    flex: 0 0 calc(50% - 15px);
  }
}

@media (max-width: 576px) {
  .post-card {
    flex: 0 0 100%;
  }

  .section-title h2 {
    font-size: 28px;
  }


  /* Responsive adjustments */
  @media (max-width: 768px) {
    .post-cards {
      grid-template-columns: 1fr;
    }

    .section-title h2 {
      font-size: 2rem;
    }
  }
}

/* Shared article navigation */
.post-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ptk-space-4);
}

.post-nav__card {
  display: grid;
  gap: var(--ptk-space-2);
  padding: var(--ptk-space-5);
  border: 1px solid var(--ptk-color-border);
  border-radius: var(--ptk-radius-lg);
  background: var(--ptk-color-surface);
  color: var(--ptk-color-text);
  text-decoration: none;
  box-shadow: var(--ptk-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.post-nav__card:hover {
  transform: translateY(-2px);
  border-color: var(--ptk-color-primary);
  box-shadow: var(--ptk-shadow-md);
}

.post-nav__label {
  color: var(--ptk-color-text-muted);
  font-size: var(--ptk-text-xs);
  font-weight: var(--ptk-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.post-nav__title {
  margin: 0;
  font-weight: var(--ptk-weight-semibold);
}

@media (max-width: 576px) {
  .post-nav {
    grid-template-columns: 1fr;
  }
}
