/* Contenedor principal */
.role-posts-wrapper {
    width: 100%;
    margin: 0 auto;
    clear: both;
}

/* Grid container */
.role-posts-container {
    display: grid;
    gap: 30px;
    width: 100%;
    margin-bottom: 30px;
}

/* Columnas específicas */
.role-posts-container[data-columns="1"] { 
    grid-template-columns: 1fr; 
}
.role-posts-container[data-columns="2"] { 
    grid-template-columns: repeat(2, 1fr); 
}
.role-posts-container[data-columns="3"] { 
    grid-template-columns: repeat(3, 1fr); 
}
.role-posts-container[data-columns="4"] { 
    grid-template-columns: repeat(4, 1fr); 
}
.role-posts-container[data-columns="5"] { 
    grid-template-columns: repeat(5, 1fr); 
}
.role-posts-container[data-columns="6"] { 
    grid-template-columns: repeat(6, 1fr); 
}

/* Fallback por defecto si no hay data-columns */
.role-posts-container:not([data-columns]) {
    grid-template-columns: repeat(3, 1fr);
}


/* Item individual */
.role-post-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 400px;
}

.role-post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Imagen */
.role-post-image {
    height: 250px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

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

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

/* Contenido */
.role-post-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    flex: 1;
    min-height: 120px; /* Reducido ya que no hay excerpt */
}

/* Título */
.role-post-title {
    margin: 0 0 20px 0; /* Más margen inferior */
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    width: 100%;
    line-height: 1.4;
    flex: 1; /* Ocupa el espacio disponible */
    display: flex;
    align-items: center;
    justify-content: center;
}

.role-post-title a {
    text-decoration: none;
    color: #333;
    display: block;
    text-align: center;
    width: 100%;
}

.role-post-title a:hover {
    color: #0073aa;
}

/* Botón */
.role-post-button-container {
    margin-top: auto;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Item individual - altura reducida */
.role-post-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 350px; /* Reducido de 400px */
}

/* Botón */
.role-post-button-container {
    margin-top: auto;
    padding-top: 15px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.role-post-button {
    display: inline-block;
    background-color: #0073aa;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    min-width: 120px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.role-post-button:hover {
    background-color: #005a87;
    color: white;
    transform: translateY(-1px);
    text-decoration: none;
}

/* Placeholder para imágenes sin definir */
.role-post-placeholder {
    width: 100%;
    height: 250px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 14px;
}

/* Paginación */
.role-posts-pagination {
    text-align: center;
    margin-top: 30px;
    padding: 20px 0;
}

.role-posts-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.role-posts-pagination .page-numbers:hover,
.role-posts-pagination .page-numbers.current {
    background: #0073aa;
    color: white;
}
/* Estilos existentes... */

/* 🆕 Estilos para tipos de curso */
.role-post-meta {
    margin: 10px 0;
    text-align: center;
}

.course-type {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.course-type.presencial {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
}

.course-type.online {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    box-shadow: 0 2px 4px rgba(33, 150, 243, 0.3);
}

/* Efectos hover para los tipos */
.course-type:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

/* Mensajes de error */
.role-posts-error,
.role-posts-no-items {
    text-align: center;
    color: #666;
    font
