/**
 * Yancor Cursos Grid - Estilos
 */

.yancor-cursos-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.yancor-curso-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e8e8e8;
}

.yancor-curso-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.yancor-curso-imagen {
    flex-shrink: 0;
    width: 150px;
    height: 100px;
    overflow: hidden;
    border-radius: 8px;
}

.yancor-curso-imagen a {
    display: block;
    width: 100%;
    height: 100%;
}

.yancor-curso-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.yancor-curso-item:hover .yancor-curso-thumb {
    transform: scale(1.05);
}

.yancor-curso-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a5f4a 0%, #0d3829 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
}

.yancor-curso-contenido {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.yancor-curso-titulo {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.yancor-curso-titulo a {
    color: #1a5f4a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.yancor-curso-titulo a:hover {
    color: #0d3829;
}

.yancor-btn-ver-mas {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #1a5f4a 0%, #0d3829 100%);
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    width: fit-content;
}

.yancor-btn-ver-mas:hover {
    background: linear-gradient(135deg, #0d3829 0%, #061f16 100%);
    transform: translateX(5px);
    color: #ffffff !important;
}

.yancor-btn-ver-mas svg {
    transition: transform 0.3s ease;
}

.yancor-btn-ver-mas:hover svg {
    transform: translateX(3px);
}

/* Responsive */
@media (max-width: 768px) {
    .yancor-curso-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }
    
    .yancor-curso-imagen {
        width: 100%;
        height: 180px;
    }
    
    .yancor-curso-contenido {
        width: 100%;
    }
    
    .yancor-btn-ver-mas {
        width: 100%;
        justify-content: center;
    }
}
