/* Contenedor Grid Principal */
.kps-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 30px 0;
}

/* Tarjeta Individual */
.kps-related-card {
    background: #ffffff;
    padding: 20px; /* Espacio interno blanco */
    /* border-radius: 8px; Posiblemente no tenga bordes redondeados según la imagen, pero se ve mejor */
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); /* Sombra suave para separar del fondo gris */
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kps-related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Imagen */
.kps-related-image {
    width: 100%;
    height: 180px; /* Altura fija para uniformidad */
    overflow: hidden;
    margin-bottom: 15px;
    background-color: #f0f0f0;
}

.kps-related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.kps-related-card:hover .kps-related-image img {
    transform: scale(1.05);
}

/* Metadata (Fecha) */
.kps-related-date {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
    text-transform: lowercase; /* O ajustado según preferencia */
}

/* Título */
.kps-related-title {
    font-family: "Merriweather", "Georgia", serif; /* Fuente serif como en la imagen */
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 15px 0;
    color: #333;
}

.kps-related-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.kps-related-title a:hover {
    color: #007cba; /* Color de enlace WP o personalizado */
}

/* Enlace Leer más */
.kps-related-more {
    margin-top: auto; /* Empuja el enlace al fondo si las alturas varían */
    font-size: 0.95rem;
    color: #444;
    text-decoration: none;
    font-weight: 500;
    display:  inline-block;
}

.kps-related-more:hover {
    text-decoration: underline;
}

/* Responsividad */
@media (max-width: 992px) {
    .kps-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .kps-related-grid {
        grid-template-columns: 1fr;
    }
}
