/* 
 * Módulo: Listado de Cursos EXF
 * Los estilos principales se heredan del plugin exf-formacion.
 */
.wpcd-editor-placeholder {
    opacity: 0.8;
}

/* Paginación Estética */
.exf-course-list-wrapper .exf-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.exf-course-list-wrapper .exf-pagination .page-numbers {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background-color: #f8f9fa;
    color: #495057;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    border: 1px solid #e9ecef;
}

.exf-course-list-wrapper .exf-pagination .page-numbers:hover {
    background-color: #e9ecef;
    color: #212529;
}

.exf-course-list-wrapper .exf-pagination .page-numbers.current {
    background-color: #2d3e50; /* Color oscuro alineado con el botón de "Ver curso" */
    color: white;
    border-color: #2d3e50;
}

.exf-course-list-wrapper .exf-pagination .page-numbers.next,
.exf-course-list-wrapper .exf-pagination .page-numbers.prev {
    background-color: transparent;
    border: none;
    color: #2d3e50;
    font-weight: 600;
}

.exf-course-list-wrapper .exf-pagination .page-numbers.next:hover,
.exf-course-list-wrapper .exf-pagination .page-numbers.prev:hover {
    background-color: rgba(45, 62, 80, 0.1);
    color: #1a252f;
}

/* Centrado flexible para listados incompletos */
.exf-course-list-wrapper .exf-cursos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.exf-course-list-wrapper .exf-cursos-grid > * {
    flex-grow: 0;
    flex-shrink: 0;
}

/* Base (Desktop) */
.exf-course-list-wrapper .exf-cursos-grid.exf-layout-grid-4 > * {
    width: calc(25% - 18px);
}
.exf-course-list-wrapper .exf-cursos-grid.exf-layout-grid-3 > * {
    width: calc(33.333% - 16px);
}
.exf-course-list-wrapper .exf-cursos-grid.exf-layout-grid-2 > * {
    width: calc(50% - 12px);
}

/* Breakpoints (heredados de exf-public.css) */
@media (max-width: 1024px) {
    .exf-course-list-wrapper .exf-cursos-grid.exf-layout-grid-4 > * {
        width: calc(33.333% - 16px);
    }
}

@media (max-width: 900px) {
    .exf-course-list-wrapper .exf-cursos-grid.exf-layout-grid-4 > *,
    .exf-course-list-wrapper .exf-cursos-grid.exf-layout-grid-3 > * {
        width: calc(50% - 12px);
    }
}

@media (max-width: 600px) {
    .exf-course-list-wrapper .exf-cursos-grid.exf-layout-grid-4 > *,
    .exf-course-list-wrapper .exf-cursos-grid.exf-layout-grid-3 > *,
    .exf-course-list-wrapper .exf-cursos-grid.exf-layout-grid-2 > * {
        width: 100%;
    }
}


/* Estilos para Cursos Destacados */
.exf-curso-card.exf-curso-destacado {
    border: 2px solid var(--exf-destacado-border, #255837) !important;
    box-shadow: 0 4px 15px rgba(37, 88, 55, 0.2);
    position: relative;
    background-color: var(--exf-destacado-bg, #edf2ef) !important;
}

.exf-curso-card.exf-curso-destacado .exf-curso-card-body,
.exf-curso-card.exf-curso-destacado .exf-curso-card-footer {
    background-color: transparent !important;
}

.exf-card-badge-destacado {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--exf-destacado-badge, #faba00);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
