/* ============================================================
   Nombre del archivo: modulos/mis-cursos/mis-cursos.css
   Estilos para tarjetas, tabla y layout de "Mis cursos"
   Inspirado en el estilo de Opositadatos
   ============================================================ */

/* ------------------------------
   GRID DE TARJETAS
------------------------------ */
.bazan-grid-cursos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* ------------------------------
   TARJETA DE CURSO
------------------------------ */
.bazan-curso-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    position: relative;
    border-left: 8px solid rgb(0,127,162); /* Color solicitado */
}

/* Imagen */
.bazan-curso-imagen img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

/* Contenido */
.bazan-curso-info {
    padding: 15px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bazan-curso-titulo {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 600;
    color: #222;
}

.bazan-curso-descripcion {
    font-size: 0.9rem;
    color: #555;
    margin: 0;
}

.bazan-curso-fecha {
    font-size: 0.85rem;
    color: #333;
    margin: 0;
}

/* Botón */
.bazan-btn-acceder {
    display: inline-block;
    text-align: center;
    padding: 10px 14px;
    background: rgb(0,127,162);
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 5px;
    transition: background 0.2s ease;
}

.bazan-btn-acceder:hover {
    background: rgb(0,110,140);
}

/* ------------------------------
   TABLA (modo lista)
------------------------------ */
.bazan-tabla-cursos {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 0.95rem;
}

.bazan-tabla-cursos th {
    text-align: left;
    padding: 10px;
    background: rgb(0,127,162);
    color: #fff;
    font-weight: 600;
}

.bazan-tabla-cursos td {
    padding: 12px 10px;
    border-bottom: 1px solid #ddd;
    vertical-align: top;
}

.bazan-tabla-descripcion {
    font-size: 0.85rem;
    color: #666;
}

/* ------------------------------
   TOGGLE MODO LISTA
------------------------------ */
.bazan-toggle-lista {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* ------------------------------
   RESPONSIVE
------------------------------ */
@media (max-width: 600px) {
    .bazan-tabla-cursos th:nth-child(2),
    .bazan-tabla-cursos td:nth-child(2) {
        display: none; /* Oculta la fecha en móvil */
    }
}
