/*
 * Overrides finales: tarjetas con título visible y espaciado correcto.
 * Se carga después de anima-evolution-hub.css para ganar al plugin.
 */

/* Grid: 2 columnas en móvil/tablet, 3 en desktop; centrado */
.anima-evolution-hub-list .ulp-list-courses-wrapp.anima-evolution-grid,
.ulp-list-courses-wrapp.anima-evolution-grid,
body .ulp-list-courses-wrapp.anima-evolution-grid,
div.ulp-list-courses-wrapp.anima-evolution-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    row-gap: 32px !important;
    column-gap: 32px !important;
    gap: 32px !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 24px 0 40px !important;
}
@media (min-width: 900px) {
    .anima-evolution-hub-list .ulp-list-courses-wrapp.anima-evolution-grid,
    .ulp-list-courses-wrapp.anima-evolution-grid,
    body .ulp-list-courses-wrapp.anima-evolution-grid,
    div.ulp-list-courses-wrapp.anima-evolution-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Forzar que la tarjeta sea FLEX (el plugin pone display:block y oculta el cuerpo) */
.ulp-list-courses-wrapp.anima-evolution-grid a.ulp-list-courses-item-wrapp.evo-nexus-card-link,
.ulp-list-courses-wrapp.anima-evolution-grid .ulp-list-courses-item-wrapp.evo-nexus-card,
.anima-evolution-hub-list .ulp-list-courses-wrapp.anima-evolution-grid a.evo-nexus-card-link,
.anima-evolution-hub-list .ulp-list-courses-wrapp.anima-evolution-grid .ulp-list-courses-item-wrapp.evo-nexus-card {
    display: flex !important;
    flex-direction: row !important;
    height: 220px !important;
}

/* Cuerpo de la tarjeta: siempre visible; padding-right para no solaparse con el precio FLUX */
.ulp-list-courses-wrapp.anima-evolution-grid .evo-card-body,
.anima-evolution-hub-list .evo-card-body,
a.evo-nexus-card-link .evo-card-body {
    display: flex !important;
    flex-direction: column !important;
    min-width: 220px !important;
    width: auto !important;
    flex: 1 1 auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    padding-right: 72px !important;
}

/* Título y texto legibles */
a.evo-nexus-card-link .evo-card-title,
.evo-nexus-card .evo-card-title {
    display: block !important;
    visibility: visible !important;
    color: #fff !important;
}

a.evo-nexus-card-link .evo-card-excerpt,
.evo-nexus-card .evo-card-excerpt {
    display: block !important;
    visibility: visible !important;
}
